problem sending mail
-
everything executed and no error message but unable to send mail.. sent mail from and to local network... guide me...
MailMessage message = new MailMessage();
message.From = TextBox1.Text;
message.To = TextBox2.Text;
message.Subject = TextBox3.Text;
message.Body = TextBox4.Text;
try
{
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(message);} catch (Exception ex) { Label1.Text=ex.Message.ToString(); }
-
everything executed and no error message but unable to send mail.. sent mail from and to local network... guide me...
MailMessage message = new MailMessage();
message.From = TextBox1.Text;
message.To = TextBox2.Text;
message.Subject = TextBox3.Text;
message.Body = TextBox4.Text;
try
{
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(message);} catch (Exception ex) { Label1.Text=ex.Message.ToString(); }
Have you configured SMTP service on the dev/deployment box? If yes check if the messages are in the Bad mail folder. Else configure SMTP service, All the best for that .
-
everything executed and no error message but unable to send mail.. sent mail from and to local network... guide me...
MailMessage message = new MailMessage();
message.From = TextBox1.Text;
message.To = TextBox2.Text;
message.Subject = TextBox3.Text;
message.Body = TextBox4.Text;
try
{
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(message);} catch (Exception ex) { Label1.Text=ex.Message.ToString(); }
madhukk wrote:
sent mail from and to local network...
Are you connected to internet? Check the link below: http://www.codersource.net/csharp_sending_emails.aspx[^] The list of FAQ may help you: FAQ[^]
Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.
-
Have you configured SMTP service on the dev/deployment box? If yes check if the messages are in the Bad mail folder. Else configure SMTP service, All the best for that .
-
There might be a multitude of reasons why the mail is moved to bad mail. For starters check if the SMTP configuration is correct. As Anuragh has pointed, it could be a problem with the SMTP routing. Also, open the message from the bad mail folder to see if there is anything wrong in the message itself, may be the from, to, etc is not valid. Also, check out the reference that Anuragh has provided.
-
There might be a multitude of reasons why the mail is moved to bad mail. For starters check if the SMTP configuration is correct. As Anuragh has pointed, it could be a problem with the SMTP routing. Also, open the message from the bad mail folder to see if there is anything wrong in the message itself, may be the from, to, etc is not valid. Also, check out the reference that Anuragh has provided.
smtp is configured correctly... this is error im getting in badmail... Final-Recipient: rfc822;madhuk@ritwik.net Action: failed Status: 5.5.0 Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Received: from netzoom ([192.168.1.140]) by netzoom with Microsoft SMTPSVC(6.0.3790.1830); Fri, 11 Dec 2009 11:33:28 +0530 thread-index: Acp6J6iir0Pz4+GbReinRqj/qV6YfA== Thread-Topic: hi From:madhuk@ritwik.net; To:madhuk@ritwik.net; Subject: hi Date: Fri, 11 Dec 2009 11:33:28 +0530 Message-ID: 000601ca7a27$a8a2df80$8c01a8c0@netzoom; MIME-Version: 1.0
-
smtp is configured correctly... this is error im getting in badmail... Final-Recipient: rfc822;madhuk@ritwik.net Action: failed Status: 5.5.0 Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Received: from netzoom ([192.168.1.140]) by netzoom with Microsoft SMTPSVC(6.0.3790.1830); Fri, 11 Dec 2009 11:33:28 +0530 thread-index: Acp6J6iir0Pz4+GbReinRqj/qV6YfA== Thread-Topic: hi From:madhuk@ritwik.net; To:madhuk@ritwik.net; Subject: hi Date: Fri, 11 Dec 2009 11:33:28 +0530 Message-ID: 000601ca7a27$a8a2df80$8c01a8c0@netzoom; MIME-Version: 1.0
madhukk wrote:
Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces.
I guess the lines message there pretty much sums up your errors.
-
madhukk wrote:
Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces.
I guess the lines message there pretty much sums up your errors.