About the EmailMessage class and SMTPSocket
Issue: 12.2 (March/April 2014)
Author: Christian Schmitz
Author Bio: Christian Schmitz is the creator of the Monkeybread Software Xojo/Real Studio Plugins.
Article Description: No description available.
Article Length (in bytes): 10,071
Starting Page Number: 15
Article Number: 12204
project12204.zip Updated: 2014-03-03 00:47:57
Related Link(s): None
Excerpt of article text...
In a lot of projects we use the
EmailMessageclass and the
SMTPSocketto send emails to people. For example, your web app can email people their login password or email yourself status information every morning. Also, you can email newsletters, serial numbers, or invoices from your apps.
The EmailMessage class
EmailMessageclass represents an email message. It has properties to various headers of the email and also properties for content and attachments. You can compose an email using those properties and later query the
sourceof the email. Or, you receive an email as text file and assign the raw email data to the
sourceproperty to parse it.
Please note that the source is generated for you each time and generating source can update the headers, so a second source call may give a different result. Also, if you assign and query, you do not receive the
exactsame source data.
First you can assign a subject with the
subjectproperty. Be aware that inline encodings of emails are not supported by the
EmailMessageclass, so you can
only assign ASCII texthere.
...End of Excerpt. Please purchase the magazine to read the full article.