Difference between revisions of "EmailMessage.BodyPlainText"

From Xojo Documentation

 
Line 20: Line 20:
 
mail.FromAddress = "mary@company.com"
 
mail.FromAddress = "mary@company.com"
 
mail.Subject = "Status Report"
 
mail.Subject = "Status Report"
mail.BodyPlainText = MessageField.Text
+
mail.BodyPlainText = MessageField.Value
 
</rbcode>
 
</rbcode>

Latest revision as of 13:58, 18 July 2019

Property (As String )
aEmailMessage.BodyPlainText = newStringValue
or
StringValue = aEmailMessage.BodyPlainText

Supported for all project types and targets.

The body text of the email as plain text.

Notes

Clients that do not support HTML or enriched format will display the message as plain text using the contents of this property. You should always include plain text when sending the email message.

Example

// populate the email message
mail = New emailMessage
mail.FromAddress = "mary@company.com"
mail.Subject = "Status Report"
mail.BodyPlainText = MessageField.Value