教你怎么使用Jmail发送匿名的邮件(不要身份认证)
< DOCTYPE html PUBLIC -WCDTD XHTML StrictEN httpwwwworgTRxhtmlDTDxhtml-strictdtd>
找到jmail.dll (x:\Program Files\Dimac Development\JMail )并拷贝到一个地方,如:d:\jm\
打开vs2008的命令提示工具
执行如下命令
tlbimp d:\jm\jmail.dll /out:myJmail.dll /namespace:myJmail
然后剪切
x:\Program Files\MicrosoftVisualStudio 9.0\VC 下面的生成myJmail.dll到你web的bin目录下并引用
测试代码如下:
SMTPMail OWENmail = new myJmail.SMTPMail();
OWENmail.Charset = "gb2312";
OWENmail.Sender = "";
OWENmail.Subject waweb.cn= "Web技术之家";
OWENmail.AddRecipient("");
OWENmail.Body = "Web技术之家";
OWENmail.Execute();
OWENmail.Close();
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/sscrazy/archive/2010/04/08/5462922.aspx