Author: alshimo | Posted on: 7/25/2009 4:37:41 AM | Views : 985

 hi
i'm trying to send email with SmtpMail in asp.net 2
MailMessage mailMessage = new MailMessage(); mailMessage.From = txtMobile.Text; mailMessage.To = txtEmail.Text; mailMessage.Subject = "Test"; mailMessage.Body = "Body"; SmtpMail.Send(mailMessage);  when i run tis code on my web server it's not working and throw an exception:
The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for myEmail@yahoo.com but when i change my web server and run this code on another server it's working properly.
what is my fault?
plz help me.

...

Go to the complete details ...