Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating window application using C#.net when i am sending email to client one error occur.

client.Send(mailmsg); // error. Transaction failed. The server response was: Relay rejected for policy reasons.
but when i am sending mail to out head.. it's successfully send to him..
not send to gmail,sifymail,hotmail,etc..
Posted

1 solution

It seems like your Mailserver does not relay mails to the 'world', just intern. Thats a common security setting with Mailservers.
You have to change the serversetting, or ask your admins about it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900