I'm using EmailMessage to send emails via Amazon SES in Django. I am currently having trouble inserting new lines in the message. "\n" does not seem to work
How do I go about doing this?
As an example, this is what I've tried:
subject= "Test email with newline"
message = "%s %s is testing an email with a newline. \nCheck out this link too: http://www.example.com" % (user.first_name, user.last_name)
from_string = "<support@example.com>"
email_message = EmailMessage(subject, message, from_string, [user.email])
email_message.send()
When I send this email I get:
Michael Smith is testing an email with a newline. Check out this link too:
http://www.example.com
However, I expected the email to be formatted like this:
Michael Smith is testing an email with a newline.
Check out this link too: http://www.example.com