烧鹅店利润怎样:为什么我做的asp不能发送E_mail,错开在哪里?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/06 04:02:57
<body>
<%
if request("sumit")<>"" then

fromwho = trim( request.from("fromwho"))
towho = trim( request.from("towho"))
subject = trim( request.from("subject"))
body = trim( request.from("body"))

if towho<>"" then
dim mymail
set mymail = server.createobject("cdonts.newmail")
mymail.from = fromwho
mymail.to = towho
mymail.subject = subject
mymail.boby = boby
mymail.send
set mymail = nothing
else
response.write "收信人不能为空,请<a href=javascript:window.history.back(-1)>返回</a>重新填写!"
response.end
end if
end if

%>

<table width="946" border="0" cellpadding="0" cellspacing="0" bgcolor="#00FF99">
<!--DWLayoutTable-->
<tr>
<td width="124" height="654"> </td>
<td width="713" valign="top" bgcolor="#00FFFF"><p> </p> <form action="writemail.asp" method="post" name="form1" class="style1">
<p>写下你要对院长说的话点击“发送”,会自动发送到院长的邮箱。如果你想要院长回复,请写下你的邮箱(由于院长工作忙可能不能及时的回复,请原谅。)
没事请不要骚扰,谢谢合作! </p>
<p class="style2">收信人:
<input type="text" name="towho">
</p>
<p class="style2">主题:
<input type="text" name="subject">
</p>
<p class="style2">发信人:
<input type="text" name="fromwho">
</p>
<p class="style2">邮件内容:</p>
<p class="style2">       
<textarea name="body" cols="90" rows="20"></textarea>
</p>
<p class="style2"> </p>
<p align="center" class="style2">
<input type="submit" name="Submit" value="发送">
</p>
<p class="style2">  </p>
</form> <p> </p></td>
<td width="109"> </td>
</tr>
</table>
</body>
</html>

应该没错啊!可能要等很久才能收到,上次我也做了一个,过了一天后才收到,!

注意:发件人也要为正确的邮箱地址哦!
你不要搞一个:发件人:小猪 嘻嘻!

以下是我那个程序
<%
set mail=Server.CreateObject("CDONTS.NewMail")
mail.from="7271637@163.com"
mail.to="156693048@qq.com"
mail.Subject="你好"
mail.body="呵呵,看到了吧!"
mail.send
set mail=nothing
response.write "发送成功!"
%>