如何传递mailto的身体中的URL [英] How to pass an URL in mailto's body

查看:1356
本文介绍了如何传递mailto的身体中的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在正文中发送我的网站的网址,以便邮件收件人可以点击该网址加入我的网站。

I need to send an URL of my site in the body so the mail recipient can click on that to join my site.

但是目前邮件客户端呈现邮件像这样:

However currently mail client renders the mail like this:


链接到这里 http://www.example.com/foo.php?this=a

& 符号上截断URL,因此整个加入过程失败。如何传送像 http://www.example这样的网址。 com / foo.php?this = a& join = abc& user454 in mailto body?

The URL is truncated on the & symbol, thus the whole process of joining failed. How can I pass the URL like http://www.example.com/foo.php?this=a&join=abc&user454 in mailto body?

我当前的HTML如下:

My current HTML is the following:

<a href="mailto:test@test.test?body=Link goes here http://www.example.com/foo.php?this=a&amp;really=long&amp;url=with&amp;lots=and&amp;lots=and&amp;lots=of&prameters=on_it
">Link text goes here</a>


推荐答案

URL解码器/编码器工具会执行该操作。以下似乎可以使用

You need to encode the URL. This URL Decoder/Encoder tool will do the trick. The following seems to work:

<a href="mailto:test@test.test?body=Link goes here http%3A%2F%2Fwww.example.com%2Ffoo.php%3Fthis%3Da%26join%3Dabc%26user454
">Link text goes here</a>

这篇关于如何传递mailto的身体中的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆