Best way to send an email from a .NET application?

后端 未结 6 1952
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-06 07:16

I\'m working on a Windows Forms (.NET 3.5) application that has a built-in exception handler to catch any (heaven forbid) exceptions that may arise. I\'d like the exception

6条回答
  •  没有蜡笔的小新
    2020-12-06 07:55

    You'll want to use the SmtpClient class as outlined here.
    There are no gotchas - sending email is about as easy as it gets.

提交回复
热议问题