EmailAttachment.Data
From Xojo Documentation
Property (As String )
aEmailAttachment.Data = newStringValue
or
StringValue = aEmailAttachment.Data
Supported for all project types and targets.
or
StringValue = aEmailAttachment.Data
Supported for all project types and targets.
When receiving an attachment, the contents of the attachment.
Example
file = New EmailAttachment
file.ContentEncoding = "UTF8"
file.Data = TextArea1.Value
file.ContentEncoding = "UTF8"
file.Data = TextArea1.Value