Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google应用程序引擎中的HTML格式电子邮件(Java)_Java_Google App Engine_Email - Fatal编程技术网

Google应用程序引擎中的HTML格式电子邮件(Java)

Google应用程序引擎中的HTML格式电子邮件(Java),java,google-app-engine,email,Java,Google App Engine,Email,如何在谷歌应用程序引擎中发送HTML格式的电子邮件?我只需要一些概述或文档,而不是代码。AE使用 你基本上可以做到: String msgText = getHtmlMessageText(...); msg.setContent(msgText, "text/html"); 另一个简单的例子是这里-只要忽略创建会话部分中的“sessionProperties.put”(“mail.smtp.host”,smtpServer);”,因为您使用的是AE。不管怎样,它都会被AE忽略 或者只是谷歌“

如何在谷歌应用程序引擎中发送HTML格式的电子邮件?我只需要一些概述或文档,而不是代码。

AE使用

你基本上可以做到:

String msgText = getHtmlMessageText(...);
msg.setContent(msgText, "text/html");
另一个简单的例子是这里-只要忽略创建会话部分中的“sessionProperties.put”(“mail.smtp.host”,smtpServer);”,因为您使用的是AE。不管怎样,它都会被AE忽略

或者只是谷歌“javamail html”

记住,你也可以