aspNetEmail

ForwardReplyEmail.ConvertToPlainText Property

Converts the email to plain text only.

public bool ConvertToPlainText {get; set;}

Example

[C#]
            //the following example creates an email for forwarding
            ReplyEmail reply = new ReplyEmail();
            
            //load the email message that will be sent a reply
            reply.LoadFile( "c:\\temp\\original.eml" );
            
            //set the body text found inline
            reply.BodyText( "Thanks for the email. Here's the info you requested...");
            
            //convert to plain text
            reply.ConvertToPlainText = true;
            
            //remove attachments 
            reply.RemoveAttachments = true;
            reply.RemoveEmbeddedObjects = true;
            
            //render the message
            reply.Render();
            
            //work with the EmailMessage that has been formatted as a reply
            reply.FormattedMessage.Server = "mail.example.com";
            reply.FormattedMessage.FromAddress ="me@example.com";
            reply.FormattedMessage.To = "you@yourcompany.com";
            
            reply.FormattedMessage.Send();
            
            
            
[VB.NET]
             'the following example creates an email for forwarding
            Dim reply As New ReplyEmail()
            
            'load the email message that will be sent a reply
            reply.LoadFile("c:\temp\original.eml")
            
            'set the body text found inline
            reply.BodyText("Thanks for the email. Here's the info you requested...")
            
            'convert to plain text
            reply.ConvertToPlainText = True
            
            'remove attachments 
            reply.RemoveAttachments = True
            reply.RemoveEmbeddedObjects = True
            
            'render the message
            reply.Render()
            
            'work with the EmailMessage that has been formatted as a reply
            reply.FormattedMessage.Server = "mail.example.com"
            reply.FormattedMessage.FromAddress = "me@example.com"
            reply.FormattedMessage.To = "you@yourcompany.com"
            
            reply.FormattedMessage.Send()
            
            
            

See Also

ForwardReplyEmail Class | aspNetEmail Namespace