I have some servers like this :
10.0.0.100 : DNS server, Exchange Mail Server (abc.com, mail.abc.com)
10.0.0.200 : Web server (
www.abc.com)
Everything with upper servers is doing well.
But, I have only one problem.
I wanna send mail from website using ASP.NET and the STMP server of the web server.
ASP.NET code is below.
[C#]
MailMessage mail = new MailMessage();
mail.From = "PersonA@abc.com";
mail.To = "PersonB@abc.com";
mail.Body = "Test";
SmtpMail.SmtpServer = "127.0.0.1"; // I will use SMTP server on web server
SmtpMail.SendMail(mail);
In this code,
if the mail.To = "abc@google.com"
that works well. but, if the receiver is the person of internal network, it doesn't work.
why didn't it work?
Should i change some settings of DNS, Exchanger Server to receive mail from internal SMTP server(webserver)?
Please give me any helpful comments.
Thanks..
Start Free Trial