aspNetEmail

ForwardReplyEmail.SubjectPrefix Property

The prefix used when sending an email.

public string SubjectPrefix {get; set;}

Remarks

For example, if you are forwarding an email, this value may be set to "FW: " (without the quotes).

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...");
            
            reply.SubjectPrefix = "RE: ";
            
            //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...")
            
            reply.SubjectPrefix = "RE: "
            
            '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