smtp
-
hi i am using smtp concept to sent mail . My code is like below: System.Web.Mail.MailMessage objmail = new System.Web.Mail.MailMessage(); objmail.To = "bretto.be@gmail.com"; objmail.From = "bretto.abraham@aciin.com"; objmail.Subject = "Password Recovery"; objmail.BodyFormat = MailFormat.Html; objmail.Body = "Name: " + strUserName + "\r\n" + "Password: " + strPassword; objmail.Priority = MailPriority.High; // System.Web.Mail.SmtpMail.SmtpServer = "mail.aciin.com"; // System.Web.Mail.SmtpMail.SmtpServer = "64.187.101.246"; // System.Web.Mail.SmtpMail.SmtpServer = "192.168.0.25"; System.Web.Mail.SmtpMail.Send(objmail); objmail = null; but it will display error like this: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available please help me.
with regards, bretto
-
hi i am using smtp concept to sent mail . My code is like below: System.Web.Mail.MailMessage objmail = new System.Web.Mail.MailMessage(); objmail.To = "bretto.be@gmail.com"; objmail.From = "bretto.abraham@aciin.com"; objmail.Subject = "Password Recovery"; objmail.BodyFormat = MailFormat.Html; objmail.Body = "Name: " + strUserName + "\r\n" + "Password: " + strPassword; objmail.Priority = MailPriority.High; // System.Web.Mail.SmtpMail.SmtpServer = "mail.aciin.com"; // System.Web.Mail.SmtpMail.SmtpServer = "64.187.101.246"; // System.Web.Mail.SmtpMail.SmtpServer = "192.168.0.25"; System.Web.Mail.SmtpMail.Send(objmail); objmail = null; but it will display error like this: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available please help me.
with regards, bretto
It looks like it should work from what i can see. have you tried doing a search in google for the error?
"Sex is not the answer, it's the question and the answer is yes"
-
hi i am using smtp concept to sent mail . My code is like below: System.Web.Mail.MailMessage objmail = new System.Web.Mail.MailMessage(); objmail.To = "bretto.be@gmail.com"; objmail.From = "bretto.abraham@aciin.com"; objmail.Subject = "Password Recovery"; objmail.BodyFormat = MailFormat.Html; objmail.Body = "Name: " + strUserName + "\r\n" + "Password: " + strPassword; objmail.Priority = MailPriority.High; // System.Web.Mail.SmtpMail.SmtpServer = "mail.aciin.com"; // System.Web.Mail.SmtpMail.SmtpServer = "64.187.101.246"; // System.Web.Mail.SmtpMail.SmtpServer = "192.168.0.25"; System.Web.Mail.SmtpMail.Send(objmail); objmail = null; but it will display error like this: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available please help me.
with regards, bretto
brettokumar wrote:
but it will display error like this: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
First Configre is SMTP Server. You code is fine. You need to Configure your SMTP server that allow you sebnd mail using SMTP.
cheers, Abhijit