The encoding of scheme of the contents.
By default the contents are automatically encoded with Base64 encoding and the Content Transfer Encoding is also set to Base64 encoding. This setting should only be modified by an advanced developer.
[C#]
EmailMessage msg = new EmailMessage();
msg.Server = "mail.mycompany.com";
msg.FromAddress = "me@mycompany.com";
msg.To = "you@yourcompany.com";
msg.Subject = "this is an advanced sample";
msg.Body = "this email contains an inline attachment.";
Attachment a = new Attachment();
a.Name = "MyAsciiText.txt";
a.ContentDisposition = "inline";
a.ContentTransferEncoding = MailEncoding.Bit7;
a.ContentType = "text/plain";
a.Contents = "this is my inline attachment";
msg.AddAttachment( a );
msg.Send();
[Visual Basic]
Dim msg As New EmailMessage()
msg.Server = "mail.mycompany.com"
msg.FromAddress = "me@mycompany.com"
msg.To = "you@yourcompany.com"
msg.Subject = "this is an advanced sample"
msg.Body = "this email contains an inline attachment."
Dim a As New Attachment()
a.Name = "MyAsciiText.txt"
a.ContentDisposition = "inline"
a.ContentTransferEncoding = MailEncoding.Bit7
a.ContentType = "text/plain"
a.Contents = "this is my inline attachment"
msg.AddAttachment(a)
msg.Send()