Helo, I have a problem when sending email from VB.Net application, the error message is
"The server rejected one or more recipient addresses. The server
response was: 550 5.7.1 Unable to relay for [email protected]".
What is actually is the problem? How can i get out from this problem? Anyone have any idea, please reply. Thanks
in advance....
------------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
try
Dim objEmailMessage As System.Web.Mail.MailMessage
Dim objSMTPServer As System.Web.Mail.SmtpMail
objSMTPServer.SmtpServer = "mycomputername"
objEmailMessage = New System.Web.Mail.MailMessage
With objEmailMessage
.To = "[email protected]"
.From = txtFrom.Text
.Subject = "Great Job!"
.Body = "Want all my money?"
End With
objSMTPServer.Send(objEmailMessage)
catch exc as exception
response.write(exc.innerexception.innerexception.message)
end try
End SubError send email?




Reply With Quote