Skip to content

Content-Type is set as text/plain, not html, when using Freemarker #55

@konst123

Description

@konst123

I create an Email via DefaultEmail.builder() and send it via emailService.send with a Freemarker template (without attachments).
The problem is that the Content-Type is set to text/plain, not html:

MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_Part_1_600820203.1498641103737"

------=_Part_1_600820203.1498641103737
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!doctype html>
<html>
	<body>

I can also see that the MimeMessage returned from emailService.send has only one part with objectMimeType set to text/plain; charset=UTF-8.

I tried to set customHeaders but it does not help.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions