Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Please assist.

share|improve this question
add comment

1 Answer

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

share|improve this answer
add comment

Your Answer

 
discard

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.