Error in Mail sending
-
Hi all, I am having an error and an doubt. In my applicaiton i am sending automatic mail. In that whn i use SmtpMail.SmtpServer = " localhost" , there is no issue for me. But while using the SmtpMail.SmtpServer = " smtp.your-server.com" , mail is not sending/reciving for me. I got the sample from some other forums. Plz some one explaion wht is the problem, and how to solve i. Also suggest me in which suitation i have to use localhost and hich suitation i have to use smtp.servername.com. Thanks in advance
Know is Drop, Unknown is Ocean
-
Hi all, I am having an error and an doubt. In my applicaiton i am sending automatic mail. In that whn i use SmtpMail.SmtpServer = " localhost" , there is no issue for me. But while using the SmtpMail.SmtpServer = " smtp.your-server.com" , mail is not sending/reciving for me. I got the sample from some other forums. Plz some one explaion wht is the problem, and how to solve i. Also suggest me in which suitation i have to use localhost and hich suitation i have to use smtp.servername.com. Thanks in advance
Know is Drop, Unknown is Ocean
First check to see if the "smtp.your-server.com" is reachable from your workstation. Try ping smtp.your-server.com from command prompt. If it does not suceed that means there is no direct connection to smtp.your-server.com and you will probably have to use a relay server to send your mail.
================================ Thanks();