Last post Mar 03, 2012 09:15 PM by Horizon_Net
Feb 29, 2012 02:03 AM|newbie2C#|LINK
My contact page uses an update panel and the System.Net.Mail namespace to send a message. It seems to work fine.
I read about starting a new thread for the email capability. I think the rational was to not tie up the application thread if there's an issue with the email. It was an interesting idea.
Does anyone recommend, or not recommend, starting a new thread for an email being sent from a site?
Feb 29, 2012 08:03 AM|gamblor|LINK
I think this also takes into account the number of e-mails that need to be sent. For e-mailing a couple of people, I've never started another thread. Of course, in any case, you'll need to foresee the necessary exception handling.
Mar 03, 2012 07:08 PM|newbie2C#|LINK
I think your correct. The new thread was used to email a list of people for a news letter. A new thread makes sense in this type of situation.
I probably won't wory about it for my contact page since only one email will be submitted at a time.
Mar 03, 2012 09:15 PM|Horizon_Net|LINK
like said, if you just want to send an email to a couple of people you shouldn't start a new thread. If you want to send some more emails I would recommend to do that with a windows service if you can.