Asynchronously sending Emails in C#?

后端 未结 10 1438
礼貌的吻别
礼貌的吻别 2020-11-28 23:43

I\'m developing an application where a user clicks/presses enter on a certain button in a window, the application does some checks and determines whether to send out a coupl

10条回答
  •  时光说笑
    2020-11-29 00:36

    What you want to do is run the e-mail task on a separate thread so the main code can continue processing while the other thread does the e-mail work.

    Here is a tutorial on how to do that: Threading Tutorial C#

提交回复
热议问题