Error send email?

mythinky

Member
Joined
Jun 4, 2004
Messages
20
Programming Experience
1-3
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

destinationemail@address.com". 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 = "destinationemail@address.com"
.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 Sub
 
Looks like you need to set outbound authentication. Search this forum for SMTP Authentication, I saw the post with the .Fields properties to set.
 
Back
Top