Error: Invalid response code received from server - when trying to send email to contacts.
If you get an error of "Invalid response code received from server" when trying to send email(s) to CiviCRM contact(s), OR after submitting the Confirmation page when making an online contribution, OR after submitting the Confirmation page when registering for an event:
- This error generally means that your SMTP server/provider is refusing to "relay" the email you are trying to send because it doesn't recognize the Sender as a valid local SMTP mail account.
- When using the "built-in" Send Email to Contact(s) function, the email address of the logged-in user is set as the FROM address. Your SMTP provider MAY require that this be a local mail account.
- When the error is associated w/ contributions and or event registration - the problem is related to sending the receipt. Each Online Contribution page and Event Registration page allows you to configure the FROM Email Address used for the receipt. Your SMTP provider MAY require that this be a local mail account.
- If you get this message when sending to a great number of Contacts, but are able to send okay to a smaller number, then your SMTP server may be blocking the email because it looks like spam. There is not much that can be done about this.
NOTE: This error is generally displayed in a big "dump" on the page like this:
\[callback\] => Array
\[0\] => CRM_Core_Error
\[1\] => handle
\[message\] => Invalid response code received from server
\[mode\] => 16
\[type\] => pear_error
\[to_string\] => \[pear_error: message="Invalid response code received from
server" code=0 mode=callback callback=CRM_Core_Error: