Jmail实现邮件发送

闲着无聊

 

一个用jmail实现的邮件发送!!

 

方法是先下载jmail组件

 

然后安装、注册!

 

注册jmail的方法是:Regsvr32 g:/Jmail/jmail.dll

 

过会会提示你注册成功!!

 

最后一点就是关闭杀软、防火!

 

163 126邮箱的不行!

jmail.Message mail = new jmail.Message(); mail.Charset = "GB2312"; mail.Silent = true; mail.Logging = true; mail.ContentType = "text/html"; mail.From = "[email protected]"; mail.MailServerUserName = "[email protected]"; mail.MailServerPassWord = "xxxx"; mail.AddRecipient("[email protected]", "", ""); mail.Subject = "测试一下"; mail.Body = "看下能成功不"; mail.Send("smtp.139.com ", false); mail.Close();

你可能感兴趣的:(Jmail实现邮件发送)