symfony / swiftmailer-bundle

Symfony Swiftmailer Bundle
https://symfony.com/swiftmailer-bundle
MIT License
1.56k stars 151 forks source link

Rendered content ignores newlines in text/plain #229

Closed garak closed 6 years ago

garak commented 6 years ago

The new feature introduced in #228 is great, but I think the rendered part is wrong when email is text/plain. In such case, newlines should be converted to BRs. Example of raw content:

Hello user
this is your reservation id: 12345

Thanks!
the staff

Expected rendered content: the same as the raw. Current rendered content:

Hello user this is your reservation id: 12345 Thanks! the staff
ro0NL commented 6 years ago

Im hitting the same issue.

I use text/html as alternative mime part (body is text/plain).

I expected a) newlines b) the alternative part to be used...

stof commented 6 years ago

@javiereguiluz could you check this case ?