Error in Mailing
-
Hi friends I am able to send mail to the id of same domain but not to other.... this is the code and below of the code is error System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.From = new MailAddress(frmEmail); message.To.Add(new MailAddress(txtEmailAddress.Text)); message.Subject = " From "+ Label1.Text + " Your Booking Information " ; message.Body = booking_body; SmtpClient client = new SmtpClient(); client.Host = hostname; client.UseDefaultCredentials = false; System.Net.NetworkCredential auth = new System.Net.NetworkCredential(user_name,password); client.Credentials = auth; client.Send(message); ERROR: Syntax error, command unrecognized. The server response was: mr.sindhutiwari@yahoo.com relaying prohibited. You should authenticate first please tell me where i am going wrong
If You win You need not Explain............ But If You Loose You Should not be there to Explain......
-
Hi friends I am able to send mail to the id of same domain but not to other.... this is the code and below of the code is error System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.From = new MailAddress(frmEmail); message.To.Add(new MailAddress(txtEmailAddress.Text)); message.Subject = " From "+ Label1.Text + " Your Booking Information " ; message.Body = booking_body; SmtpClient client = new SmtpClient(); client.Host = hostname; client.UseDefaultCredentials = false; System.Net.NetworkCredential auth = new System.Net.NetworkCredential(user_name,password); client.Credentials = auth; client.Send(message); ERROR: Syntax error, command unrecognized. The server response was: mr.sindhutiwari@yahoo.com relaying prohibited. You should authenticate first please tell me where i am going wrong
If You win You need not Explain............ But If You Loose You Should not be there to Explain......
you can set the relay property of SMTP server by following steps open IIS Right click on default SMTP server, then select properties gott Access tab, there you will find Relay button, there you set the Relay restrictions.
Regards, Sylvester G If we don't succeed, we run the risk of failure
-
Hi friends I am able to send mail to the id of same domain but not to other.... this is the code and below of the code is error System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.From = new MailAddress(frmEmail); message.To.Add(new MailAddress(txtEmailAddress.Text)); message.Subject = " From "+ Label1.Text + " Your Booking Information " ; message.Body = booking_body; SmtpClient client = new SmtpClient(); client.Host = hostname; client.UseDefaultCredentials = false; System.Net.NetworkCredential auth = new System.Net.NetworkCredential(user_name,password); client.Credentials = auth; client.Send(message); ERROR: Syntax error, command unrecognized. The server response was: mr.sindhutiwari@yahoo.com relaying prohibited. You should authenticate first please tell me where i am going wrong
If You win You need not Explain............ But If You Loose You Should not be there to Explain......
-
my mail server is mail.abcd.com so i am able to send mails to any id of this domain like xyz@abcd.com but when i tried to send it to other ids error raised
If You win You need not Explain............ But If You Loose You Should not be there to Explain......