JR Galia
JR Galia

Reputation: 17269

HTML-formatted email in Google App Engine (Java)

How to send HTML-formatted email in Google App Engine? I just need some overview or docs, not code.

Upvotes: 2

Views: 619

Answers (1)

user1258245
user1258245

Reputation: 3639

AE uses javamail

You can basically do:

String msgText = getHtmlMessageText(...);
msg.setContent(msgText, "text/html");

Another simple example is here send html using javamail - just ignore the "sessionProperties.put("mail.smtp.host", smtpServer);" in the create session part since your are using AE. It would get ignored by AE anyway...

Or just google "javamail html".

Keep in mind you can also send an HTML message body in addition to the plaintext message body, using multi-part messages

Upvotes: 2

Related Questions