无需安装SMTP服务器发送邮件

问题描述:

我有一个.NET应用程序。我想这个应用程序发送一封电子邮件给我。如何实现这无需安装SMTP服务器?

I have a .Net application. I want this application to send an email to me. How do I implement this without installing an SMTP server?

使用的SmtpClient$c$c>送MailMessage$c$c>不要求你有你的本地计算机上的服务器。

Using an SmtpClient to send a MailMessage does not require you to have a server on your local machine.

您的电子邮件服务提供商是一个与服务器(例如smtp.gmail.com),和你的 SmtpClient 会谈到它。

Your e-mail service provider is the one with the server (e.g. smtp.gmail.com), and your SmtpClient talks to it.