2016-12-07 4 views
0

電子メールコンポーザーでhtmlを本文として送信しようとしています。 html本文にはハイパーリンクが含まれていますが、Gmailでは機能しません。 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 
         }); 

答えて

4

本文の代わりに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 
        }); 
+0

はhtmlの作業ですか?私は試みたが、私のために働いていない。 –

関連する問題