EmailAttachment

From Real Software Documentation

Jump to: navigation, search
Class (inherits from Object)

Used to hold attachments to an email.



Properties
ContentEncoding MacCreator
Data MacType
MIMEType 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 file as EmailAttachment
Dim mail as EmailMessage
If fileFld.text <> "" then
file = New EmailAttachment
file.loadFromFile GetFolderItem(fileFld.text)
mail.Attachments.Append file
end if


See Also

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

Personal tools