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

查看:193
本文介绍了发送邮件而不安装SMTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.Net应用程序。我希望这个应用程序向我发送一封电子邮件。

解决方案

使用 SmtpClient 发送 MailMessage 不要求您在本地计算机上安装服务器。



您的电子邮件服务提供商是与服务器(例如smtp.gmail.com)的服务器,而您的 SmtpClient 则会对此进行说明。


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?

解决方案

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

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天全站免登陆