开发者

Add a variable to a javascript email

开发者 https://www.devze.com 2023-03-31 03:44 出处:网络
How would I add var bob to the body of this email? var bob; function sendMail() { var link = \"ma开发者_JS百科ilto:YourEmailHere\"

How would I add var bob to the body of this email?

var bob;
function sendMail() {
var link = "ma开发者_JS百科ilto:YourEmailHere"
         + "?cc="
         + "&subject=App Build Link Buit With MWFPRO's App Build Tool"
         + "&body=Hi" 
;

window.location.href = link;
}


var name = "Bob";
function sendMail() {
var link = "mailto:YourEmailHere"
     + "?cc="
     + "&subject=App Build Link Buit With MWFPRO's App Build Tool"
     + "&body=Hi " + name + ","; 
;
0

精彩评论

暂无评论...
验证码 换一张
取 消