jmail.Message jmessage=new jmail.MessageClass();
jmessage.Charset="GB2312";//编码
jmessage.From="[email protected]";//发送人的邮件地址
jmessage.FromName= "系统管理员" ;//发送人的姓名
jmessage.Subject="你的密码!";//邮件主题
jmessage.AddRecipient("[email protected]","","");//接收人的邮件地址,姓名
jmessage.Body= "你在本网站的帐号密码已经成功找回,请你妥善保管!卡号:124密码:122342" ;//邮件内容
jmessage.MailServerUserName= "[email protected]" ;//发送者邮箱的用户名
jmessage.MailServerPassWord=  "111111" ;//发送者邮箱的密码
jmessage.Send("smtp.sohu.com",false)  ;//发送着邮箱的smtp服务器地址jmessage.Close() ;------------------------------
执行完后,抛也下面异常:
the message was undeliverable.All servers failed to receive the message