Why can SmtpClient.SendAsync only be called once?

前端 未结 7 1322
暗喜
暗喜 2021-02-02 11:22

I\'m trying to write a notification service (for completely legit non-spam purposes) in .NET using SmtpClient. Initially I just looped through each message and sent it, however

7条回答
  •  天涯浪人
    2021-02-02 11:55

    You may only send one at a time per SMTP client. If you wish to make more than one send call, create more than one SMTP client.

    HTH,

    Colby Africa

提交回复
热议问题