无需安装 SMTP 服务器即可发送邮件 [英] Sending mail without installing an SMTP server
本文介绍了无需安装 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
发送 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屋!
查看全文