-1

How can i send the hyper link through mail.

Intent i = ShareCompat.IntentBuilder.from(getActivity())

        .setText(PageContants.MAIL_CONTENT1+Html.fromHtml("<a href=\"" + pdfLink+"\"> here </a>")+PageContants.MAIL_CONTENT2).setSubject(PageContants.MAIL_SUBJECT)

        .setType("message/rfc822").getIntent().setAction(Intent.ACTION_SEND);
        startActivity(i);

Any help would be appreciated.

Bytecode
  • 6,551
  • 16
  • 54
  • 101

1 Answers1

0

Not all the email cleints support all the html tags. Android Gmail client doesn't support it atleast.Its works only for basic tags, like, , etc.It doesn't work for especially <img>,<href> etc tags.

reference,

https://stackoverflow.com/a/7787568/1665507

Android, How to send HTML email and force Android to send it through G-Mail not other applications?

Community
  • 1
  • 1
Spring Breaker
  • 8,233
  • 3
  • 36
  • 60