邮件中的新行
New Line in Mail
用于发送邮件的 django 函数(见下文)工作得非常好!
from django.core.mail import send_mail
send_mail(
'Subject here',
'Here is the message.',
'from@example.com',
['to@example.com'],
fail_silently=False,
)
很遗憾,消息文本中没有关于创建新行的信息!有谁知道解决方案或有同样的问题?包含这些内容的最佳方式是什么?
您可以使用 \n
换行。
用于发送邮件的 django 函数(见下文)工作得非常好!
from django.core.mail import send_mail
send_mail(
'Subject here',
'Here is the message.',
'from@example.com',
['to@example.com'],
fail_silently=False,
)
很遗憾,消息文本中没有关于创建新行的信息!有谁知道解决方案或有同样的问题?包含这些内容的最佳方式是什么?
您可以使用 \n
换行。