android - Sending Email in HTML format Text -


i application have send html formated e-mail, contains image code is:-

 string subject = username+" shared image u";         string body = "<!doctype html public \"-//w3c//dtd xhtml 1.0 transitional//en\" \"http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" /><title>e-mail</title></head><body><table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border:1px solid #999;\" align=\"center\"><tr><td valign=\"top\" style=\"background-color:#001b91; width:550px;\"><a href=\"#\"><img src=\"http://www.image.com/images/bk_logo.jpg\" /></a></td></tr><tr><td><table width=\"537\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:#fcfcfa; margin-top:10px; float:left; border:1px solid #d5d5d5; margin-left:3px; margin-bottom:10px;\"><tr><td style=\"margin:0px;font-family:arial, helvetica, sans-serif; font-size:20px; color:#012ee4; border-bottom:1px dashed #d5d5d5; margin-bottom:5px; padding:10px 0 10px 10px;\">check out found on here!</td></tr><tr><td style=\"font-size:15px; font-family:arial, helvetica, sans-serif; color:#000; padding:10px 10px 10px 10px; line-height:20px;\"><strong style=\"color:#000 ;\"> "                     + username                     + " <a href= \""                     + applicationlink                     + "\">shared spin you.</a></strong></td></tr><tr><td valign=\"top\" style=\"background-color:#; width:220px;\"><a href=\""                     + applicationlink                     + "\"><img src=\""                     + imagelink                     + "\" height=\"100\" /></a></td><tr><td style=\"font-size:15px; font-family:arial, helvetica, sans-serif; color:#000; padding:10px 10px 20px 10px; line-height:20px;\"><strong style=\"color:#012ee4; \">rock world!</strong></td></tr><tr><td style=\"font-size:12px; font-family:arial, helvetica, sans-serif; color:#000; padding:10px 10px 10px 10px; line-height:20px;\">kind regards<br />the application team<br />ps. if want leave feedback email @ <a href=\"#\">info@application.com</a></td></tr></table></td></table></body></html>";             intent shareintent = new intent(intent.action_sendto,uri.parse("mailto:"));             shareintent.putextra(intent.extra_text,html.fromhtml(body));             shareintent.putextra(intent.extra_subject, subject);             startactivity(shareintent); 

but not shown correctly on mail composer. missing, please me.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -