aspNetEmail

ReplyEmail Class

Used for creating an EmailMessage object that an be used as a Reply.

For a list of all members of this type, see ReplyEmail Members.

System.Object
   ForwardReplyEmail
      ReplyEmail

public class ReplyEmail : ForwardReplyEmail

Example

[C#]
            //the following example creates an email as a reply
            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...");
            
            //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 as a reply
            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...")
            
            '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()
            
            
            
            
            

Requirements

Namespace: aspNetEmail

Assembly: aspNetEmail (in aspNetEmail.dll)

See Also

ReplyEmail Members | aspNetEmail Namespace