aspNetEmail

EmailMessage.Boundary Property

Gets or Sets the boundary for parts of the email.

public string Boundary {get; set;}

Remarks

This property should only be used by advanced developers. If the Boundary is not set, aspNetEmail will intelligently create the boundary.

Example

[C#]
            
            EmailMessage msg = new EmailMessage( "mail.myCompany.com");
            msg.FromAddress = "me@myCompany.com";
            msg.Subject = "Order Confirmation";
            msg.To = "you@yourcompany.com";
            
            //logging for easier troubleshooting
            msg.Logging = true;
            msg.LogPath = "c:\\email.log";
            
            //declare the boundary
            msg.Boundary = "ABCDEF";
            
            //set the plain text body
            msg.TextBodyPart = "the plain text part goes here...";
            
            //set the html text body
            msg.HtmlBodyPart ="html text can go here...";
            
            msg.Send();
            
[VB.NET]
            Dim msg As New EmailMessage("mail.myCompany.com")
            
            msg.FromAddress = "me@myCompany.com"
            msg.Subject = "Order Confirmation"
            msg.To = "you@yourcompany.com"
            
            'logging for easier troubleshooting
            msg.Logging = True
            msg.LogPath = "c:\email.log"
            
            'declare the boundary
            msg.Boundary = "ABCDEF"
            
            'set the plain text body
            msg.TextBodyPart = "the plain text part goes here..."
            
            'set the html text body
            msg.HtmlBodyPart = "html text can go here..."
            
            msg.Send()
            
            

See Also

EmailMessage Class | aspNetEmail Namespace