Want to send image in email body in android. -


I want to send an email with the embedded image in my body before sending the image tag image or before my email is ok Not rendering from

Android Code:

  Intent Email Intent 1 = New Intent (android.content.Intent.ACTION_SEND); EmailIntent1.setType ("text / html"); EmailIntent1.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK); EmailIntent1.putExtra (Intent.EXTRA_SUBJECT, "Subject"); Stringbuilder builder = new stringbiller (); ("& Lt; div & gt;") Attachments ("& lt; div & gt;") Add ("& lt; head> gt; & lt; / head & gt; body style = \" text-align: justify; \ "& gt;" & lt; img src = \ "http: // Www.wechare.com/wp-content/uploads/banner.png \ "/ & gt;") .append ("& lt; / div & gt;"). Attachments ("& lt; / body & gt; & Lt; / html & gt; "); String body = builder.Tosting (); EmailIntent1.putExtra (Intent.EXTRA_TEXT, Html.fromHtml (body); startActivity (emailIntent1);  

HTML code:

   gt; & lt; head & gt; & lt; / head & gt; body style = "text-align: correct;" & gt; 

  • HTML content looks correct Can there be a visualization problem? Do you have permission to view external content in your email client?

    In addition, as the Html.fromHtml () , as TextView content Ready to use, I try to delete it.


  • Comments

    Popular posts from this blog

    python - Overriding the save method in Django ModelForm -

    html - CSS autoheight, but fit content to height of div -

    qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -