Can't send email through SendGrid

后端 未结 6 620
一个人的身影
一个人的身影 2021-01-15 15:58

I\'m following the example from SendGrid\'s site and as credentials I\'m pasting it what they gave me in the Azure portal. Still, I get this error message.

6条回答
  •  余生分开走
    2021-01-15 16:38

    I know this is an old post, but I found out why emails are not sent from a console application. When I add Console.Read(); at the end of the program.cs class, it sends the emails, but if I remove the Console.Read(); from the code, the emails do not send. So my assumption is, if I let the program wait a bit before it closes, the emails should send.

提交回复
热议问题