Problem in sending mail to External Mail account?
-
I am trying to send Mail through System.Web.MailMessage. When I send the mail to an address that is local to Smtp Mail Server, it reaches at the destination address. Suppose my Smtp Server is mail.123.com and my mail address is sandy@123.com. When I send mail to this address through Web.MailMessage class,it reaches the destination address with ease. However when i want to send the mail to an address that is external to SMTP Server(suppose sandy@gmail.com),it shows me an exception Exception Details: System.Runtime.InteropServices.COMException: The server rejected one or more recipient addresses. The server response was: 550 Authentication is required for relay Source Error: Line 47: mail1.Subject="Just to say Hi"; Line 48: System.Web.Mail.SmtpMail.Send(mail1); When I send the mail through Outlook Express through sandy@123.com, it easily reached at sandy@gmail.com but the above said programming method is not working. Please suggest me the solution for the above problem and any settings that I need to perform Thanks, Sandy