本文发表在 rolia.net 枫下论坛normally smtp server works like this:
it accept any mails belong to itself ( internal email);
if the mail is external email, it will check if the sender is trusted ( by ip or by user authentication ) then relay the email.
the best way to decide what's the problem is do something on your local machine like
telnet smtpserver 25
helo xxx.yourdomain.com
mail from:you@yourdomain.com
rcpt to:sombody@hotmail.com
data
xxx
.
smtp server will tell you the reason why it refuse to relay.
but you need some knowledge for smtp protocol.
sending mail by outlook ok probably means outlook is using user authentication.
deep blue already give you the solution in his previous post, check smtp Credential.
If it doesn't work on web server, you have to have permission to check it on web server.
anything could go wrong, internal firewall might block it, it might not even listening on 127.0.0.1. Web.config might be wrong ( usually you put smtp ip into web.config), you see the smtp server as 192.168.111.111 on your local machine, but it might not be the case on web server.更多精彩文章及讨论,请光临枫下论坛 rolia.net
it accept any mails belong to itself ( internal email);
if the mail is external email, it will check if the sender is trusted ( by ip or by user authentication ) then relay the email.
the best way to decide what's the problem is do something on your local machine like
telnet smtpserver 25
helo xxx.yourdomain.com
mail from:you@yourdomain.com
rcpt to:sombody@hotmail.com
data
xxx
.
smtp server will tell you the reason why it refuse to relay.
but you need some knowledge for smtp protocol.
sending mail by outlook ok probably means outlook is using user authentication.
deep blue already give you the solution in his previous post, check smtp Credential.
If it doesn't work on web server, you have to have permission to check it on web server.
anything could go wrong, internal firewall might block it, it might not even listening on 127.0.0.1. Web.config might be wrong ( usually you put smtp ip into web.config), you see the smtp server as 192.168.111.111 on your local machine, but it might not be the case on web server.更多精彩文章及讨论,请光临枫下论坛 rolia.net