I try to send emails through ASP.NET interface and can't get it to work. Emails are sent, but only if the receiver of the email has the same domain name as my server ([email protected]). The weird thing is, I actually CAN send such emails from any email program. So it seems that my Web.config file is missing something (?), although it looks ok (for me):
<mailSettings>
<smtp deliveryMethod="Network">
<network host="mydomain.com" userName="[email protected]" password="XXX" port="25" defaultCredentials="false" />
</smtp>
</mailSettings>
Any ideas?