I have an e-mail form that works fine on the staging server but not locally.
I received this error:
SMTPRecipientsRefused at /submit-foo/
{'': (555, '5.5.2 Syntax error. y4sm50402qad.14 - gsmtp')}
I read Python's documentation on the SMTPRecipientsRefused error:
All recipient addresses refused. The errors for each recipient are accessible through the attribute recipients, which is a dictionary of exactly the same sort as SMTP.sendmail() returns.
What do I need to do to solve this?
That 'gsmtp' bit might tell me that this is an issue with Gmail's SMTP server, which is what I have set up in localhost. A basic sendmail out of shell works fine, though.