Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
Asynchronous Sending of Mail
Jayzle Coballes
May 6 2013 4:09 AM
1.9k
Reply
Hi,
I'm getting a timeout error after 100 seconds when sending an email with 87 recipients on the CC list. Just want to ask if below code will send an email asynchronously or will the application thread waits for the response for the sending of email process. Thanks.
SmtpClient mailClient = new SmtpClient(Server, Port);
Thread t = new Thread(delegate()
{
try
{
mailClient.Send(mail);
}
catch (Exception ex)
{
LogHelper.LogError(ex);
}
});
t.Start();
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Which Way is better for multi Threading or multitasking in c
MultiThreading PictureBox- Loses image after time?