Sending mail in asp.net

Posted by Shoyebaziz123 under ASP.NET on 5/30/2012 | Points: 10 | Views : 857 | Status : [Member] | Replies : 3
Hi All,

I am using mail sending in my application , the page i am using is lengthy, i want when i am clicking my submit button all of proses ( i.e business logic that i am using in my page ) compeltes and page is transfer to new page ...meanwhile i am using sending mail .. all of method works fine ,even mail also sending but the page halt some time untill or unless the mail send to the user ... i want to remove this time.

I mean when i am clicking submit button page must be transfer immidiately to new page without halting the page and mail should be send from other thread ... how it can be done ?




Responses

Posted by: CGN007 on: 5/30/2012 [Member] Silver | Points: 25

Up
0
Down
You need to handle the emails asynchronously.
Please refer this
http://weblogs.asp.net/jeffwids/archive/2009/10/12/asynchronously-sending-a-system-net-mail-mailmessage-in-c.aspx

The above article will be helpful to you..

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ajay.Kalol on: 5/30/2012 [Member] Starter | Points: 25

Up
0
Down
Here is a link for how to send e Mail from G Mail Account..

If you have your own SMTP server then change Port and credentials by your details.

http://ajaypatelfromsanthal.blogspot.in/2012/05/send-mail-from-gmail-in-c.html


enjoy....

Ajay
ajaypatelfromsanthal.blogspot.in

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
http://sandeep-chourasia.blogspot.in/2011/05/send-mail-in-aspnet.html

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response