EmailAttachment.MIMEType
From Xojo Documentation
Property (As String )
aEmailAttachment.MIMEType = newStringValue
or
StringValue = aEmailAttachment.MIMEType
Supported for all project types and targets.
or
StringValue = aEmailAttachment.MIMEType
Supported for all project types and targets.
The MIME type of the attachment. Here is a reference of MIME types: http://www.ltsw.se/knbase/internet/mime.htp.
Notes
You should set the MIME type for most attachments to ensure that mail clients and services do not flag things as spam.
Sample Code
file = New EmailAttachment
file.MIMEType = "image/jpeg"
file.MIMEType = "image/jpeg"