使用电子邮件编辑器在gmail中未显示超链接

时间:2022-11-15 09:48:30

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> &nbsp;your  I think you&#39;ll find it helpful&nbsp;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> &nbsp;your  I think you&#39;ll find it helpful&nbsp;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> &nbsp;your  I think you&#39;ll find it helpful&nbsp;too.</p>'

                    };

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