I am trying to send html as a body with email composer. html body contains hyperlink but it is not working in gmail. Gmail display plain text only.
我试图用电子邮件作曲家发送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> your I think you'll find it helpful too.</p>',
isHtml: true
};
$cordovaEmailComposer.open(email).then(null, function () {
// user cancelled email
});
1 个解决方案
#1
4
use html instead of body!
使用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> your I think you'll find it helpful too.</p>'
};
$cordovaEmailComposer.open(email).then(null, function () {
// user cancelled email
});
#1
4
use html instead of body!
使用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> your I think you'll find it helpful too.</p>'
};
$cordovaEmailComposer.open(email).then(null, function () {
// user cancelled email
});