To download this file, please login or click here to register
Description:
This code user system.web.mail class library in .net to send emails.
// Setting the Body Format to support Html tags and content
message.BodyFormat = MailFormat.Html
//We are using 127.0.0,1 that is host address of local computer.
SmtpMail.SmtpServer = "127.0.0.1"
To support attachments, we are first uploading the file in a local directory, and attaching from there, then after successful attachment of file to email message, we are deleting the file from server to save Disk space on the server.