CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Error message inappropriate for constituents when email to participant fails
Pages: [1]

Author Topic: Error message inappropriate for constituents when email to participant fails  (Read 993 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Error message inappropriate for constituents when email to participant fails
February 09, 2010, 03:48:15 pm
When a constituent registers for an event, and CiviCRM fails to send the email to the supplied address, the message contains information which will potentially confuse them.

The first part of the message is helpful ...

Quote
    An error occurred when CiviCRM attempted to send an email (via SMTP). If you received this error after submitting on online contribution or event registration - the transaction was completed, but we were unable to send the email receipt.

The rest of the message is worded as if to a CiviCRM administrator ...

Quote
    The mail library returned the following error message:
    Failed to add recipient: bilbo@ken-laptop [SMTP: Invalid response code received from SMTP (outbound mail) server while attempting to send email. This is often caused by a misconfiguration in the CiviCRM Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP). (code: 550, response: 5.1.1 : Recipient address rejected: User unknown in local recipient table)]

    This is probably related to a problem in your Outbound Email Settings (Administer CiviCRM » Global Settings » Outbound Email), OR the FROM email address specifically configured for your contribution page or event. Possible causes are:

        * Your SMTP Username or Password are incorrect.
        * Your SMTP Server (machine) name is incorrect.
        * You need to use a Port other than the default port 25 in your environment.
        * Your SMTP server is just not responding right now (it is down for some reason).
        * The FROM Email Address configured for this feature may not be a valid sender based on your email service provider rules.

    Check this page for more information.

The information and link provided is not appropriate for the constituent.

The text should say something like ...

Quote
    An error occurred when we attempted to send an email. If you received this error after submitting on online contribution or event registration - the transaction was completed, but we were unable to send the email receipt.

    The following technical information might assist you understand this error:
    Failed to add recipient: bilbo@ken-laptop [SMTP: Invalid response code received from SMTP (outbound mail) server while attempting to send email. (code: 550, response: 5.1.1 : Recipient address rejected: User unknown in local recipient table)]

Thanks for 3.1!

Ken

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error message inappropriate for constituents when email to participant fails
February 10, 2010, 03:23:35 pm
Unfortunately this is a bit non-trivial to fix since the message is 'general' for all outbound email errors and we do want to give that extra info to admins. This can potentially be resolved by adding an extra parameter to CRM_Utils_Mail::errorMessage() and sending in is_public true or false - which would have to come in to send() function in that same file.

Our 'assumption' (which might be wrong) is that this type of error comes up during initial configuration of a site - and not very often once site is properly configured and doing live transactions. If this is a bad assumption, and you've experienced that this is a real problem in established site - file an issue - preferably with an accompanying patch.

Protect your investment in CiviCRM by  becoming a Member!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error message inappropriate for constituents when email to participant fails
February 10, 2010, 04:35:10 pm

also please explain in detail how this error will occur in a properly setup civicrm and mail server

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Error message inappropriate for constituents when email to participant fails
February 11, 2010, 01:59:45 am
Thanks for your prompt response!

I can only reproduce the problem when the invalid email address is being served up by the CiviCRM machine itself. So this problem would only affect users of the organisation using CiviCRM.

So I won't file an issue, as it doesn't appear to be a significant issue.

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Error message inappropriate for constituents when email to participant fails

This forum was archived on 2017-11-26.