Reputation: 11
I'm using a Symfony translation file and Mailer Bundle to send an email that serves in password resetting in the following format:
<trans-unit id="resetting.email.message">
<source>resetting.email.message</source>
<target>
Hello %username%!
To reset your password - please visit %confirmationUrl%
Regards,
the Team.
</target>
</trans-unit>
I'm using hMailServer as a local mail server and Roundcube for email display. The problem is that I am receiving the email in the following format:
Hello %username%! To reset your password - please visit %confirmationUrl% Regards, the Team.
(The variables username and confirmationUrl are substituted I'm just showing how the email is being sent).
As you can see, the line breaks are ignored. How can I solve it ?
Upvotes: 0
Views: 39
Reputation: 11
So instead of sending a HTML email, I switched off the HTML display in roundcube and the line breaks are being formatted without the need to add HTML tags.
(HTML display was on by default)
Upvotes: 0