一个发送邮件的页面代码,有什么问题吗?为什么收不到发出的信?

aspone123 2004-02-12 03:34:50
<%if request("action")="send" then
Set mail = Server.CreateObject("CDONTS.NewMail")
mail.TO =request("address1")
mail.From =request("address2")
mail.Subject = request("title")
mail.Body = request("content")
mail.Send
response.Write "ok"
response.End()
end if%>
<form action=sendemail.asp?action=send method=post>
<p>收件人邮址:
<input name=address1 type=text value="zhang@qianlong.com" size=12>
</p>
<p>寄件人邮址:
<input name=address2 size=12>
(便于回复)</p>
主    题:
<input name=title type=text size=30 maxlength="30">
<p> 内   容:
<textarea name="content" cols="30" rows="8"></textarea><p>
<input type=submit value=发送>
</form>
...全文
66 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧