gpt4 book ai didi

javascript - 带有电子邮件编辑器的 Gmail 中未显示超链接

转载 作者:行者123 更新时间:2023-11-28 15:00:44 24 4
gpt4 key购买 nike

我正在尝试使用电子邮件编辑器将 html 作为正文发送。 html 正文包含超链接,但它在 gmail 中不起作用。 Gmail 仅显示纯文本。

  var email = {
to: sendersemail+';',
cc: '',
bcc: '',
attachments: [cordova.file.externalApplicationStorageDirectory+'Report.pdf'],
subject: '',
body: '<p><a href="https://thebrainout.com/" target="_blank">the brain out</a> &nbsp;your I think you&#39;ll find it helpful&nbsp;too.</p>',
isHtml: true
};

$cordovaEmailComposer.open(email).then(null, function () {
// user cancelled email
});

最佳答案

使用 html 代替正文!

 var email = {
to: sendersemail+';',
cc: '',
bcc: '',
attachments: [cordova.file.externalApplicationStorageDirectory+'Report.pdf'],
subject: '',
html: '<p><a href="https://thebrainout.com/" target="_blank">the brain out</a> &nbsp;your I think you&#39;ll find it helpful&nbsp;too.</p>'

};

$cordovaEmailComposer.open(email).then(null, function () {
// user cancelled email
});

关于javascript - 带有电子邮件编辑器的 Gmail 中未显示超链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41019925/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com