我设置了this snippet的sendmail发送电子邮件 - Django的
我打开程序并运行(与实际电子邮件帐户)的sendmail
电子邮件后端:
from django.core.mail import send_mail
send_mail('Subject here', 'Here is the message.', '[email protected]',
['[email protected]'], fail_silently=False)
之后,控制台只是打印出:
没有错误消息或任何东西......但邮件永远不会在另一端到达...
还有什么,我需要配置?
感谢,
从我的托管服务提供商请求的邮件服务器的错误日志,看到这一点:
send_to_gateway router failed to expand "${perl{mailtrapheaders2}}":
Undefined subroutine &main::mailtrapheaders2 called.\n`
他们仍在试图弄清楚:S
哪些邮件服务器做你的用户? – okm
请参阅编辑 – AlexBrand