This documentation refers to an older version of CiviCRM (3.4 / 4.0). The current stable version is 4.1. Please introduce all documentation changes and new material here.

Skip to end of metadata
Go to start of metadata
This page refers to CiviCRM 3.4 and 4.0, current STABLE version.

Documentation Search


CiviCRM 3.4 and 4.0 Documentation

Support and Participation

Developer Resources


CiviCRM books!

Make sure to check out the FLOSS Manual Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

Or support us by buying an eBook or hard copy of Using CiviCRM from Packt Publishing.

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:

error

Array

(

    \[callback\] => Array

        (

            \[0\] => CRM_Core_Error

            \[1\] => handle

        )


    \[code\] =>

    \[message\] => Invalid response code received from server

    \[mode\] => 16

    \[debug_info\] =>

    \[type\] => pear_error

    \[user_info\] =>

    \[to_string\] => \[pear_error: message="Invalid response code received from

server" code=0 mode=callback callback=CRM_Core_Error:

:handle prefix=""

info=""\]

)
Labels
  • None