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?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
This article by Peter Bromberg on eggheadcafe.com
C# SMTP Mail without SMTP Service or CDO
explains how to send email without relying on an SMTP client:
Using an
SmtpClient
to send aMailMessage
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.You can't send email without the services of a SMTP server, there is of course no need for you to install one, just point your code at your ISPs SMTP server or your companies Exchange server (or what ever they use).