Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MailMessage email = new MailMessage();
- email.BodyFormat = MailFormat.Html;
- email.From = "testing@ppms.in";
- email.To = "ashish@techmagnate.com";
- //email.Cc = "tasauwar.ansari@techmagnate.in;";
- email.Subject = "Testing";
- email.Body = "test";
- email.Priority = MailPriority.High;
- // End of attachments processing
- // Set the SMTP server and send the email
- email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", "smtpout.secureserver.net");
- email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25");
- email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", "2");
- email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
- email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "testing@ppms.in");
- email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password");
- email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "false");
- SmtpMail.SmtpServer = "smtpout.secureserver.net";
- SmtpMail.Send(email);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement