傀儡前妻:总裁,离婚请:我用CDO做了个发邮件的,但发送不成功,只是在发送者的垃圾邮件里有,这是为什么?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/01 23:32:18
代码好象没什么问题,以下为我写的代码
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
if request("submit")<>"" then

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

if towho<>"" then
dim mymail
set mymail = server.createobject("cdonts.newmail")
mymail.from = "guangsong_zhu@126.com"
mymail.To = "xiaozhu19850210@126.com"
mymail.subject = "4634"
mymail.body = "sfgsafsadfsdfsd"
mymail.send
set mymail = nothing
else
response.write "发送不成功!"
response.end
end if
end if

%>

<html>
<head>

<title>email</title>
<style type="text/css">
<!--
body {
background-color: #00FF99;
}
.style1 {
font-size: x-large;
color: #FF0000;
}
.style2 {
font-size: large;
color: #000000;
}
-->
</style></head>

<body>
<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" class="style1">
<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>
有懂的请多多介绍介绍,实在是搞不懂!

有没有试过换过邮箱地址试试。发送者的垃圾箱里是发出去了还是没有发出去哦。好像没有邮件服务器的地址啊。
msg.Send ("smtp.163.com") ?