Sending HTML through Java to any email adress

时间:2018-07-16 09:23:21

标签: java email outlook send

I want to send a simple HTML table which is saved in a java variable:

String table = "<table border=1> <tr><td>blabla</td></tr> </table>"; 

in outlook to any email adress. The HTML should be formatted and not in plain text.

How do I do that?

thanks.

1 个答案:

答案 0 :(得分:1)

您可以看一下这篇文章:

Java Mail API: send emails via corporate outlook acount

这可能对您有用。