//------------------mail sending code-----------//
const string SERVER = "relay-hosting.secureserver.net";
MailMessage oMail = new System.Web.Mail.MailMessage();
oMail.From = "info@krisantech.com";
oMail.To = email;
oMail.Subject = "Your Krisantech Password";
oMail.BodyFormat = MailFormat.Html; // enumeration
oMail.Priority = MailPriority.High; // enumeration
oMail.Body = "Sent at: " + DateTime.Now+"Password: "+password;
SmtpMail.SmtpServer = SERVER;
SmtpMail.Send(oMail);
oMail = null; // free up resources
//------------------end mail sending code-------//
About Me
- Redwan
- Dhaka, Bangladesh
- I am B.S.C Engineer,CSE,SUST and Ex-Cadet of Mirzapur Cadet College.
Subscribe to:
Post Comments (Atom)
3 comments:
thank you! :)
I am getting this error
The server rejected the sender address. The server response was: 553 sorry, your mail was administratively denied. (#5.7.1)
Hi,
I am getting this type of error
The server rejected the sender address. The server response was: 553 sorry, your mail was administratively denied. (#5.7.1)
Post a Comment