1

I wrote PHP code that suppose to send mail via smtp.gmail.com:587 (using PEAR::Mail) to users with their forgotten password upon request. I get this error message:

Failed to add recipient: @localhost [SMTP: Invalid response code received from server (code: 555, response: 5.5.2 Syntax error. k4sm217886weq.33)]

I do not know how to handle this.

1 Answer 1

1

Asking a remote MTA to send an email to 'localhost' makes no sense. Don't do it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .