Mailing Problem
-
Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config
<system.net>
<mailSettings>
<smtp from="admin@formbag.com">
<network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
</smtp>
</mailSettings></system.net>
Is there some settings I am missing on server or something else. Thanks in advance.!
-
Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config
<system.net>
<mailSettings>
<smtp from="admin@formbag.com">
<network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
</smtp>
</mailSettings></system.net>
Is there some settings I am missing on server or something else. Thanks in advance.!
what is the error it giving.. Also,Make sure credentials are fine
himanshu
-
what is the error it giving.. Also,Make sure credentials are fine
himanshu
-
Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config
<system.net>
<mailSettings>
<smtp from="admin@formbag.com">
<network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
</smtp>
</mailSettings></system.net>
Is there some settings I am missing on server or something else. Thanks in advance.!
deezZ wrote:
But when i deploy it on the server it is giving some error.
What error are you getting? Check the following 1. Deployed server has SMTP Configured 2. Credentials are Correct
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
No errors.. I have checked the event viewer as well as my application lob, but no errors. Its just the mails are not going.
Did you check the SMTP Queue ?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
deezZ wrote:
But when i deploy it on the server it is giving some error.
What error are you getting? Check the following 1. Deployed server has SMTP Configured 2. Credentials are Correct
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
No errors.. I have checked the event viewer as well as my application lob, but no errors. Its just the mails are not going.
In your initial post you have written it is giving some error. Without knowing error it is very difficult to suggest.Have u implement proper error handling to catch errors
himanshu
-
In your initial post you have written it is giving some error. Without knowing error it is very difficult to suggest.Have u implement proper error handling to catch errors
himanshu
-
Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config
<system.net>
<mailSettings>
<smtp from="admin@formbag.com">
<network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
</smtp>
</mailSettings></system.net>
Is there some settings I am missing on server or something else. Thanks in advance.!
deezZ wrote:
some
'some', 'something' and variants of these would not take you any further. You ought to be little clear and descriptive on what is crashing so that people can help you out.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep! -
Is there any requirement to setup SMTP server on the Server as i am providing the connections settings of the SMTP in the web.config The mailing server is different from the deployment server.
deezZ wrote:
Is there any requirement to setup SMTP server on the Server as i am providing the connections settings of the SMTP in the web.config The mailing server is different from the deployment server.
Did you understand what I have asked ? Does your deployed Server has SMTP Configured ? It means If you have deployed your application on IIS Server, you IIS should have also SMTP Configure [ If your SMTP is different ]
deezZ wrote:
The mailing server is different from the deployment server.
That's cool ! IS it working fine ?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
deezZ wrote:
Is there any requirement to setup SMTP server on the Server as i am providing the connections settings of the SMTP in the web.config The mailing server is different from the deployment server.
Did you understand what I have asked ? Does your deployed Server has SMTP Configured ? It means If you have deployed your application on IIS Server, you IIS should have also SMTP Configure [ If your SMTP is different ]
deezZ wrote:
The mailing server is different from the deployment server.
That's cool ! IS it working fine ?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config
<system.net>
<mailSettings>
<smtp from="admin@formbag.com">
<network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
</smtp>
</mailSettings></system.net>
Is there some settings I am missing on server or something else. Thanks in advance.!
-
HI deezZ, Checkout does you have any firewall restriction in server, as you can send the mail from local machine their would be some possibilities for this.