Unable to send Email in asp.net
-
Hi, I am not able to send Email in asp.net,my code is running properly there are no errors or exceptions but my email is getting stored at "C:\Inetpub\mailroot\Queue" folder.Wt could be the problem. Pls suggest. GIRISH
-
Hi, I am not able to send Email in asp.net,my code is running properly there are no errors or exceptions but my email is getting stored at "C:\Inetpub\mailroot\Queue" folder.Wt could be the problem. Pls suggest. GIRISH
Hard to say without seeing the code. Best guess is that you're using a local mail server ( so that's why it is there ), and it's not sending the mail.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Hard to say without seeing the code. Best guess is that you're using a local mail server ( so that's why it is there ), and it's not sending the mail.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Hi,thanks for ur reply, this is my code, SmtpClient c = new SmtpClient("198.168.1.77"); MailMessage message = new MailMessage("shuklagirish@hotmail.com", "girish.javanet@gmail.com", "test", "Hello!!Test message from asp.net"); c.Send(message); Yes i am having proxy server internet and this ip address is of local machine so should i specify ip of Proxy server and also in the smtpserver of local machine whcih ip should i specify???
-
Hi,thanks for ur reply, this is my code, SmtpClient c = new SmtpClient("198.168.1.77"); MailMessage message = new MailMessage("shuklagirish@hotmail.com", "girish.javanet@gmail.com", "test", "Hello!!Test message from asp.net"); c.Send(message); Yes i am having proxy server internet and this ip address is of local machine so should i specify ip of Proxy server and also in the smtpserver of local machine whcih ip should i specify???
ShuklaGirish wrote:
new SmtpClient("198.168.1.77");
This needs to be a real mail server, one that actually sends mail.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )