打开电子邮件客户端与自定义预定义的电子邮件文本在jquery


Open email client with custom predefined email text in jquery

我正在尝试使用jquery发送电子邮件。这是我的代码

$text = "mailto:info@diadori.com?subject=The Vow Engagement Ring Finder&body=" . "Hi, I found an engagement ring that I love and want to know what you think. To see the ring download the iPhone app named <The Vow Engagement Ring Finder> iPhone - http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=509902433&mt=8 - Android - https://play.google.com/store/apps/details?id=com.diadori.thevow. View the ring: ". $rings[0]['ringThumbNailImagePath'] . "</html>";
    $bodytag = str_replace(" ", "%20", $text );
在jquery

window.location.herf = $bodytag;

它工作正常,但是文本只显示到id=509902433,因为&到此为止。我试过放置html标签,但不工作。

如何在mailto中自定义放置消息。第二,有没有办法添加附件?

百分比编码:

... ects/MZStore.woa/wa/viewSoftware?id=509902433%26mt=8 - Androi ...

:

... ects/MZStore.woa/wa/viewSoftware?id=509902433&mt=8 - Androi ...

:

请参阅相关主题:转义url

中的&符号