0 votes

Hi,

As you may have already know, default .Net mail engine can already send the email async. I am thinking this feature is a must have. Would you consider developing it?

Cordially,
Goh

related to an answer for: Asynchrounous Support
by (400 points)
Smtp class doesn't queue messages for sending. Async method would help when sending a single message, for bulk sending you'd need to create additional queue.
Do you mean we shall implement message queue instead of using Async for email messaging?
It depends on the volume. Are you facing any problems right now?
Actually I have some problem when the email sending is taking too long. The application seems like hanging when the email taking too long to be sent. So now I use some trick to solve it temporary. I use scheduler but the email will only be sent in an interval of 5 minutes. I just hope if I could make it more spontaneous.

1 Answer

0 votes
 
Best answer

Latest version includes full async support:
https://www.limilabs.com/mail/download

[Edit]

Use

Task.Run(() => DoWork()); 

DoWork should contain entire Smtp logic not just SendMessage call.

by (301k points)
edited by
Thanks. I think that will solve the problem as well.
This just runs the code on a separate thread. Async is more than that - it can free-up the thread during a network i/o operations.
...