当前注册人数422581人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

MailMergeLib - a .NET 2.0 mail client library

.NET2.0邮件发送客户端源代码(仿OutlookExpress)

2007年12月08日
C# 2.0, Win2K, WinXP, Win2003, Vista, .NET 2.0, ASP.NET, WebForms, VS2005, Dev
本代码是一个邮件客户端库,它拥有和OutlookExpress一样的功能,界面上也基本类似。可以发送多个附件,设置SMTP服务器,等等功能。
相关知识

 

Create a new message

So first create the message and adjust some settings. CultureInfo is relevant for formatting placeholders that contain dates, currency or numeric data.

The real advantage of MailMergeLib comes from placeholders. {Placeholders} are the field names of a DataTable embedded in any text with curly braces.

// create the mail message

MailMergeMessage mmm = new MailMergeMessage("My subject for {Nickname}");
// adjust mail specific settings

mmm.CharacterEncoding = Encoding.GetEncoding("iso-8859-1");
mmm.CultureInfo = new System.Globalization.CultureInfo("en-US");
mmm.TextTransferEncoding = System.Net.Mime.TransferEncoding.SevenBit;
mmm.BinaryTransferEncoding = System.Net.Mime.TransferEncoding.Base64;

Attachments

You may also want to add some personalized attachments by adding placeholders to the file name. E.g.:

mmm.FileAttachments.Add(new FileAttachment("testmail_{Nickname}.pdf", "sample.pdf", "application/pdf"));

And that's the way to add string attachments:

mmm.StringAttachments.Add(new StringAttachment("Some programmatically created content", "file.txt", "text/plain"));

源代码原文下载:
MailMergeLib - a .NET 2.0 mail client library MailMergeLib is a mail client library which provides mail merge capabilities. These are particularly interesting when sending automated mails. It makes use of .NET 2.0 System.Net.Mail and corrects a number of its most annoying bugs and RFC violations.

源码图片

点击链接查看大图
从本站下载附件及源代码(1个附件,已经成功下载1137次)

最值得关注的外文源代码

WCF / WPF Chat Application
OpenSmtp.Net-send email directly
An Email Server Source Code With SMTP POP3 Support
SuperMail.NET, a bulk emailing app using System.Net.Mail, MS Access, and My.Settings
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论136次,此处显示最近20次评论! 查看所有评论

nideke  2014年08月24日
界面使用不习惯
jsb5005  2014年07月08日
还可以吧
bodyea  2014年02月15日
还可以吧
tystq  2013年06月18日
只能发,不能收的,能收邮件就牛了
ty_yaoyao  2013年06月18日
谢谢哈
lazychon  2013年01月09日
学习一下,谢谢分享了。
magedhenary  2012年10月31日
非常好的资源,
jackhan  2012年09月27日
不错
wwww  2012年07月31日
非常好的资源,
5268590jj  2012年05月31日
qq 的不知可以么
netfang082  2012年05月12日
很好
oneperson  2012年04月17日
呵呵,很好啊
ninglh  2012年03月09日
谢谢 学习一下
closey  2012年02月22日
学习一下,谢谢分享了。
rt  2011年12月10日
看看~~
情缘  2011年12月09日
谢谢,学习了
niyingchuan  2011年11月27日
能有点注释吗
justgohead  2011年11月21日
下下来看看 学习了
chenyang0576  2011年11月10日
不错
hopesky  2011年11月04日
了解看看
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明