From Xojo Documentation
Used to hold the contents of an email message and its enclosures, if any.
|Attachments||EmailAttachment()||The array of EmailAttachments that are attached to this email message.|
|BCCAddress||String||Returns a comma-separated list of Strings. Gets the BCC addresses for this email.|
|BodyEnriched||String||The body text of the email message in enriched format.
Some clients such as Mail use this format when sending styled emails.
|BodyHTML||String||The body text of the email as HTML.|
|BodyPlainText||String||The body text of the email as plain text.
Clients that do not support HTML or enriched format will display the message as plain text using the contents of this property.
|CCAddress||String||Returns a comma-separated list of Strings. Gets the CC addresses for this email.|
|FromAddress||String||Gets or sets a String containing the address the email is coming from.|
|Headers||EmailHeaders||The headers for this email message.|
|Source||String||A String containing the raw source of the email message.|
|Subject||String||Gets or sets the subject of the email.|
|ToAddress||String||Gets the addresses for this email and returns a comma-separated list of Strings.|
|AddBCCRecipient||Recipient as String||Adds a BCC recipient to the email.|
|AddCCRecipient||Recipient as String||Adds a CC recipient to the email.|
|AddRecipient||Recipient as String||Adds a recipient to the email.|
The following example sets the values of the From Address, Subject, Body, and Headers from the values of the Text properties of TextFields in a window. The TextFields named fromAddressfld, subjectFld, bodyFld, and htmlFld contain this information:
The Action event of a PushButton connects to a POP3 server and gets the email for the specified account. It reads the POP3Server, username, and password from TextFields on the form. Socket1 is a POP3Socket object.
See also the examples for the POP3Socket class.