在 mailto 正文中添加换行符:link
Add newlines to body of mailto: link
我的输入来自 HTML 表单的文本框。使用 mailto:
link,它将发送到某人的电子邮件。邮件正文的格式是这样的:
First=testing&Last=testing&txtChar=123456&emailcheck=testing%40gmail.com
但我想要这样的输出:
First=testing
Last=testing
txtChar=123456
emailcheck=testing%40gmail.com
要开始换行,请使用 %0A 和空格 %20
First=testing%0ALast=testing%0A&txtChar=123456%0Aemailcheck=testing%40gmail.com
要将其转换为普通文本,您必须在表单中添加 enctype="text/plain"
;
<form method="post" action="mailto:reyjavebobbyr@gmail.com?Subject=Interactive Test" name="validation" onSubmit="return checkbae()" enctype="text/plain>
我的输入来自 HTML 表单的文本框。使用 mailto:
link,它将发送到某人的电子邮件。邮件正文的格式是这样的:
First=testing&Last=testing&txtChar=123456&emailcheck=testing%40gmail.com
但我想要这样的输出:
First=testing
Last=testing
txtChar=123456
emailcheck=testing%40gmail.com
要开始换行,请使用 %0A 和空格 %20
First=testing%0ALast=testing%0A&txtChar=123456%0Aemailcheck=testing%40gmail.com
要将其转换为普通文本,您必须在表单中添加 enctype="text/plain"
;
<form method="post" action="mailto:reyjavebobbyr@gmail.com?Subject=Interactive Test" name="validation" onSubmit="return checkbae()" enctype="text/plain>