无需安装SMTP服务器发送邮件 [英] Sending mail without installing an SMTP server
问题描述
我有一个.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?
推荐答案
使用的<一个href="http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx"><$c$c>SmtpClient$c$c>送<一href="http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage%5Fmembers.aspx"><$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.
这篇关于无需安装SMTP服务器发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!