503 This mail server requires authentication

G

Guest

Hi,
I'm using the following code for sending the e-mail. When I send the mail to
the same saver it works fine. but if I send mail to different server like
yahoo or anyother server. if gives me the following error:

The server rejected one or more recipient addresses. The server response
was: 503 This mail server requires authentication. Please check your mail
client settings.


MailMessage myMail = new MailMessage();
myMail.From="ac.xyx.com";
myMail.To= "(e-mail address removed)";
myMail.Subject="Order received";
myMail.Body="Body for the text";
SmtpMail.SmtpServer=myMailserver;
SmtpMail.Send (myMail);



Regards,

Das
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top