如何使用ASP页面发送电子邮件

我原来写了一个发送电子邮件的ASP页,代码如下,可以正常使用,现在不知道为何不能使用了.请各位ASP高手解答,先谢了.

 1   
 2towho="[email protected]"   
 3subject="test"   
 4content="test"   
 5  
 6set mymail=server.createObject("CDONTS.Newmail")   
 7mymail.from="[email protected]"   
 8mymail.to=towho   
 9mymail.subject=subject   
10mymail.body=content   
11mymail.send   
12set mymail=nothing   
13response.write"

<p>信息已经发送到:"&amp;towho

1  
2\---------------------------------------------------------------   
3  
4可能是你的IIS的SMTP服务给停止了</p>
Published At
Categories with Web编程
comments powered by Disqus