Skip to content
Advertisement

Python Django send_mail newlines?

I’m using django send_mail like this:

JavaScript

Gmail recieves this.

JavaScript

And shows my newlines as one whole paragraph. Why? I would like three lines of text, not one.

Advertisement

Answer

Try sending your email as HTML instead of plain text. Use EmailMessage().

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement