使用html mailto将变量或多个变量值发送到电子邮件的正文中 [英] Using html mailto to send variable or multiple variable values into the body of the email

查看:800
本文介绍了使用html mailto将变量或多个变量值发送到电子邮件的正文中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我试图使用mailto为了将变量值放入电子邮件正文中, < p为H. 
这是另一个mailto链接:
< a href =mailto:someone@example.com?cc = someoneelse@example.com& bcc=andsomeoneelse@example.com& subject = Summer%20Party&身体=您%20顷%20invited%20to%20A%20big%20summer%20party! target =_ top>发送邮件!< / a>
< / p>

然后,我希望最终用户能够轻松地将这些值复制并粘贴到excel中。

解决方案

这是我找到的解决方案。它使用JavaScript:

 < a href =#onclick =javascript:window.location ='mailto:'+ EmailVairable + '?受试者=' + SubjectVariable + '&安培; CC =' + CCvariable + '&安培; BCC =' + BCCvariable + '&安培;身体=' + BodyVariable>电子邮件与LT; / A> 


I am trying to use the mailto in order to put variable values into the body of the email using this code:

<p>
This is another mailto link:
<a href="mailto:someone@example.com?cc=someoneelse@example.com&bcc=andsomeoneelse@example.com&subject=Summer%20Party&body=You%20are%20invited%20to%20a%20big%20summer%20party!" target="_top">Send mail!</a>
</p>

Then I would like the end user to be able to copy and paste those values into excel easily

解决方案

Here's a solution I found. It uses JavaScript :

<a href="#" onclick="javascript:window.location='mailto:'+EmailVairable+'?subject='+SubjectVariable+'&cc='+CCvariable+'&bcc='+BCCvariable+'&body='+BodyVariable">Email</a>

这篇关于使用html mailto将变量或多个变量值发送到电子邮件的正文中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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