Gmail签名无法在mailto上使用 [英] Gmail signature not working on mailto

查看:121
本文介绍了Gmail签名无法在mailto上使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用Gmail发送电子邮件时,设置中定义的电子邮件签名会自动添加到电子邮件底部.但是,当我打开mailto链接发送消息时,不会自动添加电子邮件签名.

When I use Gmail to send an email, the email signature defined in the settings is automatically added at the bottom of the email. However, when I open a mailto link to send a message, the email signature is not automatically added.

这是代码:

<a href="mailto:john@smith.com?subject=Thanks for your time&body=Hi,%0A%0AIt%20was%20a%20real%20pleasure%20speaking%20with%20you.%20Thank%20you%20for%20your%20time%20and%20we'll%20be%20in%20touch%20soon." target="_blank">test</a>

此处中有一个jsFiddle.从mailto链接发送邮件时,我需要做些什么使电子邮件签名出现?

And there's a jsFiddle here. What do I need to do to make the email signature appear when I'm sending from a mailto link?

推荐答案

在mailto链接中使用正文作为参数将替换Gmail中已放入电子邮件中的所有内容.如果body不是mailto属性的一部分,则签名将按预期工作.

Using body as a parameter in the mailto link replaces everything that is already placed into the email by Gmail. If body is not part of the attribute from mailto, then the signature works as expected.

来源:我通过删除body属性并通过您的小提琴对此进行了测试,然后再次单击链接.它可以按您想要的方式工作.

Source: I tested this with your fiddle by removing the body attribute and clicked the link again. It works just as you want.

我必须添加代码以提交带有小提琴的答案,因此,这里的链接将适用于签名:

I have to add code to submit this answer with a fiddle, so here is the link that will work with a signature:

<a href="mailto:john@smith.com?subject=Thanks for your time" target="_blank">test</a>

这篇关于Gmail签名无法在mailto上使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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