finethen
finethen

Reputation: 433

New Line in Mail

The django-function for sending a mail (see bellow) works perfectly fine!

from django.core.mail import send_mail

send_mail(
    'Subject here',
    'Here is the message.',
    '[email protected]',
    ['[email protected]'],
    fail_silently=False,
)

Unfortunately there are no informations about creating new lines inside the message text! Does anyone know the solution or has the same problem? What's the best way to include these?

Upvotes: 0

Views: 259

Answers (1)

Mahdi Namaki
Mahdi Namaki

Reputation: 320

You can use \n for a new line.

Upvotes: 3

Related Questions