sending mail using smtp is too slow in asp.net
Ankit t...
112
Points
11
Posts
|
when i am sending email (with attached 7 mb image) then it is taking approx 50 seconds. So I am using this code. but still not working.
Use SmtpClient.SendAsync instead of using your own custom code - Stevan 14-May-2019 10:38
|
Answers
Rahul M...
4822
Points
23
Posts
|
I think you are trying to send email in separate thread to avoid blocking the requested thread. My suggestion is, you should use SmtpClient.SendAsync method. This method does not block the calling thread.
Example:
In the above example following line is for handling call back when send email completed:
If you don't want this then you can skip this part by commenting it.
Posted On:
14-May-2019 10:12
Ankit, Have u resolved your issue? - Rahul Maurya 29-May-2019 10:40
|