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

后端 未结 6 1950
佛祖请我去吃肉
佛祖请我去吃肉 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:54

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

    An extensive System.Net.Mail FAQ is located here.

提交回复
热议问题