用mailto:?Body=...发邮件,body中怎么插入回车换行、html代码?

VCBeginer 2003-08-23 05:31:23
用mailto:?Body=...发邮件,body中怎么插入回车换行?
...全文
11684 12 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
VCBeginer 2003-08-25
  • 打赏
  • 举报
回复
有没有js的写法?我这边不是asp环境。
dicklee1214 2003-08-25
  • 打赏
  • 举报
回复
VBCRLF如果你用的是vbscript的话
VCBeginer 2003-08-25
  • 打赏
  • 举报
回复
均试过了,可是outlook打开后,就是没有换行呀?这跟环境设置有没什么关系?
wolf004 2003-08-25
  • 打赏
  • 举报
回复
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
%>
zhongmao 2003-08-25
  • 打赏
  • 举报
回复
<a href=mailto:test@test.com?subject=标题我知道&body=Webmaster,你们好,%0a%0d%0a%0d我是注册用户,我想申请进入版主特区。以下是我的注册信息可以证明我的身份:%0a%0d%0a%0d注册名:%0a%0d注册使用的电子邮件:%0a%0d%0a%0d感谢你们的工作。谢谢。>测试</a>
KUMOZAKI 2003-08-25
  • 打赏
  • 举报
回复
其实js的写法也是一样的!
其实那个vbcrlf就是body或者textarea的换行符,相当于<br>!!

KUMOZAKI 2003-08-23
  • 打赏
  • 举报
回复
改错:第二行应是bodyword=bodyword&"abcdefghijklmn"&vbcrlf......
少了一个word
这是asp程序!不是js
孟子E章 2003-08-23
  • 打赏
  • 举报
回复
mailto:xx@xx.xom?body=aa%0dbb
KUMOZAKI 2003-08-23
  • 打赏
  • 举报
回复
我试过了我的方法,可以的:

您可以先设一个变量
Bodyword="12345678910"&vbCrlf
bodyword=body&"abcdefghijklmn"&vbcrlf

...mailto:?Body=<%=bodyword%>

ok!


VCBeginer 2003-08-23
  • 打赏
  • 举报
回复
不行,js中认chr(10),chr(13)但outlook中没效果?!
KUMOZAKI 2003-08-23
  • 打赏
  • 举报
回复
或许试一试vbcrlf,

boby="123456789"&"vbcrlf"......

由于我没有试过,所有不知道行不行!
luluso 2003-08-23
  • 打赏
  • 举报
回复
chr(10),chr(13)

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧