SmtpClient deliveryMethod
来源:互联网 发布:免费资源的电视软件 编辑:程序博客网 时间:2024/06/17 00:12
http://bartwullems.blogspot.sg/2010/02/smtpclient-deliverymethod.html
SmtpClient deliveryMethod
One of the nice but little known possibilities of the System.Net.Mail.SmtpClient class is the ability to drop emails into a location on disk. This makes it very easy to test your code without the need of an SMTP server.
Update your app.config or web.config like this:
1: <system.net>
2: <mailSettings>
3: <smtp deliveryMethod="SpecifiedPickupDirectory">
4: <specifiedPickupDirectory pickupDirectoryLocation="c:\mails\"/>
5: </smtp>
6: </mailSettings>
7: </system.net>
You can also configure this setting on the class itself. Files are dropped on the specified location and can be opened using Outlook Express or Windows Mail.
- SmtpClient deliveryMethod
- 用SmtpClient 发送邮件
- 用SmtpClient发送电子邮件
- SmtpClient使用介绍
- SmtpClient的一个bug
- 利用SmtpClient類發送郵件
- SmtpClient:邮件发送
- 利用SmtpClient发送邮件
- cdo vs smtpclient
- .NET smtpClient 源代码
- 使用SmtpClient发送邮件
- 使用SmtpClient发送邮件
- SmtpClient发送邮件
- 利用SmtpClient发送邮件
- 发邮件MailMessage、SmtpClient
- MailMessage+SmtpClient 发送邮件
- 哈哈哈 利用SmtpClient发送邮件
- 关于使用SmtpClient发送邮件
- Smtp邮件发送漏洞
- The import javax.servlet.http.HttpServletRequest cannot be resolved
- 迈出从3K到1W的重要一步——掌握设计模式
- 用png格式图片和非png格式图片做水印图片
- android中The connection to adb is down,问题和解决
- SmtpClient deliveryMethod
- 云计算介绍-1.2,IaaS\PaaS\SaaS比较
- awakeFromNib (XIB view 的初始化)
- BPM版本区别
- 二叉树可视化--Graphviz
- BS和CS对比
- php中static静态变量的使用方法详解
- iOS 判别汉字
- hdu 1156 Color the ball