ASP Jmail 发送邮件
<% set msg = Server.CreateOBject("JMail.Message") msg.From = "**@163.com" msg.FromName = "name" msg.MailServerUserName="**@163.com" '(填电子邮件的用户名) msg.MailServerPassWord="*******" '(填电子邮件的密码) msg.AddRecipient "**@qq.com" '(填你想发送的电子邮箱) 'msg.AddRecipient "**@qq.com" '(多个收件人则多行) msg.Subject = "suject_title" msg.Body = "Body Message!" msg.appendText "text1111." msg.appendText "text2222" msg.Send( "smtp.163.com" ) '(如果用的不是163,请换成其它的SMTP服务器) response.write "ok" %>
发送结果
邮件主题:suject_title
邮件内容:Body Message!text1111.text2222