ASP.NET MVC: Send Email Using SendAsync (System.Net.Mail)

is there a way in MVC to get System.Net.Mail SendAsync to work and not block the send method?

I tried to use it, but clicked on the โ€œPage where the asynchronous operation should have an Async errorโ€, which I obviously cannot resolve (or can I?), Because there is no ASPX page with the @Page directive, where I can add the attribute Async.

Help is appreciated: (

+5
source share
3 answers

, โ€‹โ€‹ gmail SendEmail SendAsync, SMTP-, gmail. , SendEmail , .

, gmail - , .

.

( , *) Windows 7

* , , , : - (

+2

, , , , , .

a) if youre not sending billions of emails you can have a log of what you sent
b) you can resend if something fails.

, , , .

+1

All Articles