-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content-Type is set as text/plain, not html, when using Freemarker #55
Comments
Hey, I have to check. I'll let you know asap |
It is strange, but if I deploy the same app on the server in use
But when I test the same code locally on my Windows PC, it send it as |
Is the server running Linux or Windows? |
Linux. It is Google App engine flexible environment. |
Can you provide a reproducible example. I'd like to see if it provides the same output on my Mac |
Closing because of missing feedback |
I think this is the problem described here. It sends html in the prod server, but do not send html in a unit test. They recommend using |
@konst123 thanks for poiting to that SO answer. Best |
Thank you. I tried it but it doesn't help - I have the same result. The problem maybe somewhere else. |
Hi, I have the same problem. I use the mustache html template example (version 0.6.3). When I use the spring-boot app with locally (mvn appengine:run) the html message shows perfectly. But, when I deploy the app to google app engine, the message show text/plain content-type (in gmail web client). The html template starts with <!doctype html>. Thanks, Attila |
@drmzperx so it seems a problem of environment configuration. I'm sorry but I can only debug issues on my local environment. I think you will need to understand what's different in the settings in your local env and in the remote one. |
I create an Email via
DefaultEmail.builder()
and send it viaemailService.send
with a Freemarker template (without attachments).The problem is that the
Content-Type
is set totext/plain
, nothtml
:I can also see that the MimeMessage returned from
emailService.send
has only one part withobjectMimeType
set totext/plain; charset=UTF-8
.I tried to set
customHeaders
but it does not help.The text was updated successfully, but these errors were encountered: