when using the code in asp.net and while clikcing Send button :
Err :The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for nshanmugaraj@gmail.com
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for nshanmugaraj@gmail.com
Source Error:
Line 20: mailObj.Body = MsgBody.Text
Line 21: SmtpMail.SmtpServer = "localhost"
Line 22: SmtpMail.Send(mailObj)
Line 23: End Sub
Line 24: </SCRIPT>
Source File: D:\ASPdotNET\Email\WebForm1.aspx Line: 22
---
I am new to asp.net .. can u kindly rectify my doubt..
Tks for reading over my query ....
Kindly reply me at the earliest .. Tks
shanmugaraj.n@gmail.com