EmailAttachment

From Xojo Documentation

Class (inherits from Object)

Used to hold attachments to an email.

Properties
ContentEncoding MIMEType MacType
Data MacCreator Name


Methods
LoadFromFile SaveToFile

Examples

The following example takes a path to a file and adds it as an email attachment. The path has been entered into the TextField named fileFld.

Dim mail As New EmailMessage
If fileField.Text <> "" Then
Dim file As New EmailAttachment
file.LoadFromFile(GetFolderItem(fileField.Text))
mail.Attachments.Append(file)
End If

See Also

EmailMessage, EmailHeaders, POP3Socket, POP3SecureSocket, SMTPSocket, SMTPSecureSocket, SocketCore, TCPSocket classes.