主题:  通过表单递交邮件内容的问题

Juven

职务:普通成员
等级:2
金币:1.0
发贴:474
#12002/5/29 8:18:39
各位好。
我在制作一份类似于订单的表单时,使用的ASP代码如下:
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "pengyi520@163.com"
objMail.Subject = "货物订单"
objMail.body ="姓 名=request.form("username")邮政编码=request.form("code")联系地址=request.form("address")联系电话=request.form("tel")传真=request.form("fax")要求=request.form("detail")邮箱="request.form("email")"
'you need TO add these lines FOR the mail
'to be sent in HTML format
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.To ="t828@163.com"
objMail.Body = HTML
objMail.Send

Response.write("Mail was Sent")
set objMail = nothing
%>
但在本地试运行时,总提示第6行语名未结束,我不知如何修改。烦请各位帮忙解决!!!



绿茶

职务:普通成员
等级:8
金币:10.0
发贴:19267
#22002/5/29 9:32:17
应是这样的
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "pengyi520@163.com"
objMail.Subject = "货物订单"

objMail.body ="姓 名="&request.form("username")&"邮政编码="&request.form("code")&"联系地址="&request.form("address")&"联系电话=r"&equest.form("tel")&"传真="&request.form("fax")&"要求="&request.form("detail")&"邮箱="&request.form("email")

'you need TO add these lines FOR the mail
'to be sent in HTML format
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.To ="t828@163.com"
objMail.Body = HTML
objMail.Send

Response.write("Mail was Sent")
set objMail = nothing
%>



我是小呆瓜

职务:普通成员
等级:3
金币:1.0
发贴:716
#32002/5/31 9:12:59
用这个pengyi520@163.com发邮件的时候不需要身份验证吗?