Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote PHP code that suppose to send mail via (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.

Please assist.

share|improve this question

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.