我正在使用AWS workmail(不是自定义域)并配置了一个用户,我能够发送&接收带有UI(浏览器)的邮件。现在我想使用这个workmail在我的django应用程序中发送邮件。以下是我在设置文件中的配置。
EMAIL_BACKEND = 'django_smtp_ssl.SSLEmailBackend'
EMAIL_HOST = 'smtp.mail.us-east-1.awsapps.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'admin@example.awsapps.com'
EMAIL_HOST_PASSWORD = 'mypwd'
当使用all-auth
注册用户时,应该发送邮件。但是在我的工作邮件中,我收到的邮件无法发送。
Unfortunately, the system was unable to deliver your mail.
The error given was:
2018-06-17 11:57:31 : You are not allowed to send as user or group webmaster@localhost
You may need to contact your e-mail administrator to solve this problem.