| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1921 人关注过本帖
标题:[分享] 我的成果,与你分享~~~
只看楼主 加入收藏
dpxdpx
Rank: 1
等 级:新手上路
帖 子:230
专家分:0
注 册:2005-11-22
收藏
得分:0 

顶,也许过两天用得着。哈哈


从不懂到懂点点到有点懂到懂点了到想搞懂更多到问题更多了到不懂的更多了到编程论坛请教大家来了!
2005-12-01 11:36
wuxian100
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2005-11-30
收藏
得分:0 

我用163,新浪,搜狐的都试了我的代码也发给你,帮我看看吧!:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~post.asp~~~~~~~~~~~~~~~~~~~~
<html>
<body>
<%dim name,msg,sendmail
name=request.form("name")
set msg = server.createobject("jmail.message")
msg.silent = true
msg.logging = true
msg.charset = "gb2312"
msg.mailserverusername = "wuxian100"'输入smtp服务器验证登陆名 (如:email帐号为123456@123.com,则该处为123456)
msg.mailserverpassword = "2872135124"'输入smtp服务器验证密码 (用户email帐号对应的密码)
msg.subject = request.form("subject")'信件主题
msg.addrecipient request.form("toemail")'收件人email
msg.from = "wuxian100@sohu.com" '发件人email,应该与上面的对应,例中是123456@123.com
if name<>"" then
msg.fromname = name'发件人姓名
end if
msg.body = request.form("body") '正文
msg.returnreceipt=true
msg.send ("smtp.sohu.com")'smtp服务器地址(企业邮局地址,与前面的对应)
set msg = nothing
if err then
sendmail=err.description
err.clear
else
sendmail="ok"
end if
if sendmail="ok" then
response.write"邮件发送成功,谢谢使用!"
else
response.write"由于系统错误,邮件未能成功发送!"
end if
%>
</body>
</html>


2005-12-01 14:28
wuxian100
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2005-11-30
收藏
得分:0 
我用163,新浪,搜狐的都试过了啊,可还是不行,我也另外试了一些代码,可就是发送成功却收不到:我的代码:
<html>
<body>
<%dim name,msg,sendmail
name=request.form("name")
set msg = server.createobject("jmail.message")
msg.silent = true
msg.logging = true
msg.charset = "gb2312"
msg.mailserverusername = "wuxian100"'输入smtp服务器验证登陆名 (如:email帐号为123456@123.com,则该处为123456)
msg.mailserverpassword = "2872135124"'输入smtp服务器验证密码 (用户email帐号对应的密码)
msg.subject = request.form("subject")'信件主题
msg.addrecipient request.form("toemail")'收件人email
msg.from = "wuxian100@sohu.com" '发件人email,应该与上面的对应,例中是123456@123.com
if name<>"" then
msg.fromname = name'发件人姓名
end if
msg.body = request.form("body") '正文
msg.returnreceipt=true
msg.send ("smtp.sohu.com")'smtp服务器地址(企业邮局地址,与前面的对应)
set msg = nothing
if err then
sendmail=err.description
err.clear
else
sendmail="ok"
end if
if sendmail="ok" then
response.write"邮件发送成功,谢谢使用!"
else
response.write"由于系统错误,邮件未能成功发送!"
end if
%>
</body>
</html>

2005-12-01 14:33
wuxian100
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2005-11-30
收藏
得分:0 
我用163,新浪,搜狐的都试过了啊,可还是不行,我也另外试了一些代码,可就是发送成功却收不到:

2005-12-01 14:33
wuxian100
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2005-11-30
收藏
得分:0 

我的代码:我用163,新浪,搜狐的都试过了啊,可还是不行,我也另外试了一些代码,可就是发送成功却收不到:我的代码:
<html>
<body>
<%dim name,msg,sendmail
name=request.form("name")
set msg = server.createobject("jmail.message")
msg.silent = true
msg.logging = true
msg.charset = "gb2312"
msg.mailserverusername = "wuxian100"'输入smtp服务器验证登陆名 (如:email帐号为123456@123.com,则该处为123456)
msg.mailserverpassword = "2872135124"'输入smtp服务器验证密码 (用户email帐号对应的密码)
msg.subject = request.form("subject")'信件主题
msg.addrecipient request.form("toemail")'收件人email
msg.from = "wuxian100@sohu.com" '发件人email,应该与上面的对应,例中是123456@123.com
if name<>"" then
msg.fromname = name'发件人姓名
end if
msg.body = request.form("body") '正文
msg.returnreceipt=true
msg.send ("smtp.sohu.com")'smtp服务器地址(企业邮局地址,与前面的对应)
set msg = nothing
if err then
sendmail=err.description
err.clear
else
sendmail="ok"
end if
if sendmail="ok" then
response.write"邮件发送成功,谢谢使用!"
else
response.write"由于系统错误,邮件未能成功发送!"
end if
%>
</body>
</html>


2005-12-01 14:34
wuxian100
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2005-11-30
收藏
得分:0 
我的代码:post.asp
<html>
<body>
<%dim name,msg,sendmail
name=request.form("name")
set msg = server.createobject("jmail.message")
msg.silent = true
msg.logging = true
msg.charset = "gb2312"
msg.mailserverusername = "wuxian100"'输入smtp服务器验证登陆名 (如:email帐号为123456@123.com,则该处为123456)
msg.mailserverpassword = "2872135124"'输入smtp服务器验证密码 (用户email帐号对应的密码)
msg.subject = request.form("subject")'信件主题
msg.addrecipient request.form("toemail")'收件人email
msg.from = "wuxian100@sohu.com" '发件人email,应该与上面的对应,例中是123456@123.com
if name<>"" then
msg.fromname = name'发件人姓名
end if
msg.body = request.form("body") '正文
msg.returnreceipt=true
msg.send ("smtp.sohu.com")'smtp服务器地址(企业邮局地址,与前面的对应)
set msg = nothing
if err then
sendmail=err.description
err.clear
else
sendmail="ok"
end if
if sendmail="ok" then
response.write"邮件发送成功,谢谢使用!"
else
response.write"由于系统错误,邮件未能成功发送!"
end if
%>
</body>
</html>

2005-12-01 14:34
wuxian100
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2005-11-30
收藏
得分:0 

楼主帮我看看我的代码吧,和你的一样怎么会接受不到呢
我只是改了
msg.mailserverusername = "wuxian100"'输入smtp服务器验证登陆名 (我的帐号)
msg.mailserverpassword = "2872135124"'输入smtp服务器验证密码 (对应的密码)
msg.from = "wuxian100@sohu.com"
msg.send ("smtp.sohu.com")'smtp服务器地址(企业邮局地址,与前面的对应)


2005-12-01 14:38
wuxian100
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2005-11-30
收藏
得分:0 

楼主帮我看看我的代码吧,和你的一样怎么会接受不到呢
我只是改了
msg.mailserverusername = "wuxian100"'输入smtp服务器验证登陆名 (我的帐号)


2005-12-01 14:38
wuxian100
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2005-11-30
收藏
得分:0 
msg.mailserverpassword = "2872135124"'输入smtp服务器验证密码 (对应的密码)
msg.from = "wuxian100@sohu.com"
msg.send ("smtp.sohu.com")'smtp服务器地址(企业邮局地址,与前面的对应)

2005-12-01 14:39
wuxian100
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2005-11-30
收藏
得分:0 
msg.mailserverpassword = "2872135124"'(对应的密码)
msg.from = "wuxian100@sohu.com"
msg.send ("smtp.sohu.com")'(企业邮局地址,与前面的对应)

2005-12-01 14:39
快速回复:[分享] 我的成果,与你分享~~~
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024709 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved