Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 6547 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Sending mail in asp.net ...
Shoyebaziz123

Sending mail in asp.net

Replies: 3 | Posted by: Shoyebaziz123 on 5/30/2012 | Category: ASP.NET Forums | Views: 321 | Status: [Member] | Points: 10  


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 ?


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

CGN007
CGN007  
Posted on: 5/30/2012 2:59:41 AM
Level: Silver | Status: [Member] | Points: 25

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. | Reply | Alert Moderator 

Ajay.Kalol
Ajay.Kalol  
Posted on: 5/30/2012 3:07:59 AM
Level: Starter | Status: [Member] | Points: 25

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....

http://ajaypatelfromsanthal.blogspot.in

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

Perfect.Chourasia@Gmail.Com
Perfect.Chourasia@Gmail.Com  
Posted on: 6/8/2012 3:01:01 AM
Level: Starter | Status: [Member] | Points: 25

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

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://sandeep-chourasia.blogspot.com/

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

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 8:49:35 AM