无需安装SMTP服务器发送邮件 [英] Sending mail without installing an SMTP server

查看:1396
本文介绍了无需安装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?

推荐答案

使用的<一个href="http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx"><$c$c>SmtpClient送<一href="http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage%5Fmembers.aspx"><$c$c>MailMessage不要求你有你的本地计算机上的服务器。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆