multiple SmtpSendMail

0
hello there, I have a component that uses multi sockets to request webpages at the same time, right now I am using 5 sockets, so when I click start it will download 5 different webpages at the same time and I would like to know if its possible to have the SmtpSendMail send 5 emails from those 5 web pages at the same time.. I was able to send 1 email at a time but I would like to know if its possible to send 5 at the same time?
edited 11/30/2017 12:03:01 AM
asked 4/6/2012 2:20:37 AM
add a comment

3 Answers

0
If it's 5 different messages, you should initiate 5 different connections in 5 threads using the SmtpClient class, and call the Send method or you can use Async methods like BeginConnect, BeginAuthenticate, BeginSend: Sending a message Asynchronously
edited 12/4/2017 10:22:17 PM
answered 11/16/2017 12:41:36 AM
add a comment
0
What example are you mentioning about? To send multiple messages at the same time, you need multiple threads or to use of async BeginXXX methods properly. Please let us know your code segment and we can help you.
 
answered 11/16/2017 12:41:36 AM
add a comment
0
I am using the sample vb.net that your provides to send to emails at the same time and its not working.. "Another operation is pending" http://pastebin.com/SNRRnWjd
 
answered 11/16/2017 12:41:36 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged smtp mail or ask your own question.