Layout in html email with JavaMail API

女生的网名这么多〃 提交于 2019-12-25 09:13:09

问题


I'm having a hard time trying to compose a great looking (layout wise) html email with JavaMail API.

I know how to add a picture inside the email body, and then add text above and below, but that's kinda it. I'm really hoping to create a little more complex layout with some separators, image borders, larger text titles and so on.

Would I need to know html in order to create this, or does anyone know of a good guide or tutorial on how to work with html JavaMail?

Hope this question isn't to abstract for stackoverflow, thanks.


回答1:


This is not a JavaMail problem.

Compose your html however you want. Then use the MimeBodyPart setText(content, charset, "html") method.



来源:https://stackoverflow.com/questions/19384323/layout-in-html-email-with-javamail-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!