The code I am using is what I found on webfaction
EMAIL_HOST = 'smtp.webfaction.com'
EMAIL_HOST_USER = '<mailbox name>'
EMAIL_HOST_PASSWORD = '<mailbox pass>'
DEFAULT_FROM_EMAIL = '<email address>'
SERVER_EMAIL = '<email address>'
I keep on getting the error SMTPRecipientsRefused
Sender address rejected: need fully-qualified address
I figured out the problem, it was not in the settings, the settings are correct, it was while sending the actual email in views.py I used a different email address in the from_email field.
The problem is that you have not configured well your settings on webfaction control panel.
You have to follow these steps described in the docs
In my code I have this:
EMAIL_HOST = 'smtp.webfaction.com'
EMAIL_HOST_USER = 'infomailbox'
EMAIL_HOST_PASSWORD = '<<mine>>'
DEFAULT_FROM_EMAIL = '[email protected]'
SERVER_EMAIL = '[email protected]'
It works perfect for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With