用mailto:?Body=...发邮件,body中怎么插入回车换行?
我试过了我的方法,可以的:
您可以先设一个变量
Bodyword="12345678910"&vbCrlf
bodyword=body&"abcdefghijklmn"&vbcrlf
...mailto:?Body=<%=bodyword%>
ok!
改错:第二行应是bodyword=bodyword&"abcdefghijklmn"&vbcrlf......
少了一个word
这是asp程序!不是js
<a href=mailto:test@test.com?subject=标题我知道&body=Webmaster,你们好,%0a%0d%0a%0d我是注册用户,我想申请进入版主特区。以下是我的注册信息可以证明我的身份:%0a%0d%0a%0d注册名:%0a%0d注册使用的电子邮件:%0a%0d%0a%0d感谢你们的工作。谢谢。>测试</a>
mail.body="<br>"这就是一个回车了!
给你一个例子!〕
<%set mail=server.createobject("CDONTS.NewMail")
mail.to=email
mail.from=smail
mail.MailFormat = 0
mail.bodyFormat = 0
mail.subject="邮件的标题"
html=html&"<html>"
html=html&"<head>"
html=html&"</head>"
html=html&"</html>"
html=html&"<div align=""center""> "
html=html&"<table border=""0"" cellpadding=""0"" cellspacing=""0"" width=""100%"" align=""center"">"
html=html&"<tbody>"
html=html&"<tr>"
html=html&"<td width=""100%"">"
html=html&"<table border=""0"" cellpadding=""0"" cellspacing=""0"" width=""100%"">"
html=html&"<tbody>"
html=html&"<tr>"
html=html&"<td colspan=""2"" valign=""top"" height=""5"">"
html=html&"<table width=""100%"" cellspacing=""0"" cellpadding=""0"">"
html=html&"<tr valign=""top"">"
html=html&"<td width=""100%"">"
html=html&"<table width=""100%"" cellspacing=""0"" cellpadding=""0"" height=""100%"">"
html=html&"<tr>"
html=html&"<td>"
html=html&"<table width=""100%"" cellpadding=""1"" align=""center"" border=""0"">"
html=html&"<tr align=""center"" valign=""top"" >"
html=html&"<td>"
html=html&"<table width=""100%"" cellspacing=""0"" cellpadding=""0"" height=""100%"">"
html=html&"<tr>"
html=html&"<td>"
html=html&"<table width=""100%"" cellspacing=""0"" cellpadding=""0"" height=""100%"" border=""0"" align=""left"" >"
html=html&"<tr>"
html=html&"<td height=""8"">"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td height=""10"">"
html=html&yname
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td height=""5"">"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td>"
html=html&msg
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td height=""5"">"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td>"
html=html&sname
html=html&" "
html=html&date()
html=html&"</font>"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td height=""5"">"
html=html&"</td>"
html=html&"</tr>"
html=html&"</table>"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td height=""1"">"
html=html&"</td>"
html=html&"</tr>"
html=html&"</table>"
html=html&"</td>"
html=html&"</tr>"
html=html&"</table>"
html=html&"<br>"
html=html&"<br>"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr align=""left"">"
html=html&"<td height=""15"">"
html=html&"<a href=""http://www.yqhr.com.cn"" >"
html=html&"乐清人才网 www.yqhr.com.cn"
html=html&"</a>"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr align=""left"">"
html=html&"<td height=""10"">"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td>单位名称:"
html=html&dws1
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr align=""left"">"
html=html&"<td height=""10"">"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td>招聘职位:"
html=html&zws1
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr align=""left"">"
html=html&"<td height=""10"">"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr align=""left"">"
html=html&"<td height=""30"">"
html=html&"详细信息请查看:""<a href=""http://www.yqhr.com.cn/zhaopin/zhaopinviews.asp?uname"
html=html&"="
html=html&ids1
html=html&""">"
html=html&"http://www.yqhr.com.cn/zhaopin/zhaopinviews.asp"
html=html&"</a>"
html=html&"</td>"
html=html&"</tr>"
html=html&"</table>"
html=html&"</td>"
html=html&"</tr>"
html=html&"</table>"
html=html&"</td>"
html=html&"</tr>"
html=html&"<tr>"
html=html&"<td colspan=""2"" valign=""top"">"
html=html&"</td>"
html=html&"</tr>"
html=html&"</tbody>"
html=html&"</table>"
html=html&"</td>"
html=html&"</tr>"
html=html&"</tbody>"
html=html&"</table>"
mail.body=html
mail.send
%>