在本地服务器上装了imail做邮件服务器,本机上做网站,想用jmail组件做asp发送?

请这样问有没有问题?要不要配iis的smtp服务,谁能给我asp的带吗?
---------------------------------------------------------------

没问题,把 iis的smtp服务关掉。注意把 imail 的匿名发送关闭,免得有人用你的服务器发垃圾邮件,你自己发送的话使用 imail 已有的帐号为发件人。

Set mail = Server.CreateObject("JMail.SMTPMail")
mail.ServerAddress = "xxx.xxx.xxx.xxx"
mail.Sender = "[email protected]"
mail.AddRecipient UserEmail
mail.ContentType = "text/html"
mail.Subject = "xxx.com 给您发回的密码。"
mail.Body = "

1<br/>

您在 xxx.com 网站的登录密码是:" & Password & "

1<br/>
1<br/>
1<a href="" http:="" www.xxx.com""="">http://www.xxx.com</a>

"
mail.Execute

Published At
Categories with Web编程
Tagged with
comments powered by Disqus