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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Outbound Email Errors with CiviContribute Contribution confirmation emails
Pages: [1] 2

Author Topic: Outbound Email Errors with CiviContribute Contribution confirmation emails  (Read 5013 times)

rgracia

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
Outbound Email Errors with CiviContribute Contribution confirmation emails
October 16, 2009, 09:33:31 am
So what happens is the following: Testing goes well all the way until the credit card is charged, at which point the donor gets the following error. Note that I have pasted both versions as we tested Sendmail and SMTP functionality. For both of those, the test email works perfectly and it is received successfully. All the settings are indeed correct, how have people resolved this matter in the past? I see a lot of posts with these or similar errors but never a resolution posted:

SMTP Errors
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 mail library returned the following error message:
Failed to add recipient: @localhost [SMTP: recipient is not recognized (code: 501, response: <@localhost>: no local part)]

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.

Sendmail Errors:
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 mail library returned the following error message:
sendmail returned error code 1

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 Sendmail path is incorrect.
Your Sendmail argument is incorrect.
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.

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: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 16, 2009, 10:50:09 am

if the test has worked successfully, most likely it is the from email address:

The FROM Email Address configured for this feature may not be a valid sender based on your email service provider rules.

You need to either fix your mailer to be more relaxed on what the From address can be, or fix the FROM address (u can change this in the contribution page settings)

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

rgracia

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 17, 2009, 07:38:06 am
Considering we need to deploy this CiviCRM and its CiviContribute functionality as soon as possible, does it make more sense for us to downgrade the testing site from version from 3.0.1 (which is what we are evaluating) to something else? I love the easy donation page that we can create with it with multiple choices of amounts and custom amounts fields and we have been searching for this functionality in Drupal for so long now, but I have been unable to fix the Outbound Mail problems so far and it seems that it may be isolated to the CiviContribute donations functionality as the server is sending mail successfully via other Drupal modules and normal functionality. We would be willing to hire a consultant to fix this for us if needed. I would need a direct email with fee/hr and availability in the NYC area. PM me or reply if you want my email via PM.
« Last Edit: October 17, 2009, 08:45:53 am by rgracia »

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: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 19, 2009, 08:07:30 am

if you have not found a consultant to help you out as yet, please contact us on IRC and we can try to help out

Please read and follow the instructions at:

 http://wiki.civicrm.org/confluence/display/CRMDOC/SSH+Access+Requirements

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

rgracia

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 26, 2009, 06:40:00 pm
OK guys I still have not been able to resolve this matter and I am not the only one. I like CiviCRM a lot so far, but honestly, it is really hard to recommend, implement and support these open source solutions when we run into problems like this one and there's no one to turn to for solutions. I am unfortunately not a SSH guru so the IRC contact suggestion that Lobo posted earlier is foreign to me, I don't even know how to get started doing that. Here's a bit of additional information on our setup:

Host: Midphase
PHP Version: 5.2.6
Apache Version: 2.2.10 (Unix)
Path to sendmail /usr/sbin/sendmail

Our host provides access to our server settings via CPanel and WHM so it would be really great to get some sort of steps to follow in that sort of environment to test and troubleshoot why we are getting these errors with CiviContribute only as some other users have reported.

In the few weeks I have worked with CiviCRM I have recommended it to some other developers for evaluation as I think it is unique in what it offers to non-profit sites. Our problem is pressing because the site is live and we are already accepting donations without the automated email confirmation on completion until this issue is resolved, but for now we have to manually check for new contributions and generate an email to the donor ourselves when the site is well equipped to handle the task, it just doesn't work as it should.

We are in the new york city area and unfortunately are in a budget, so I have to try to resolve this myself with the help of the forum experts.

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: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 26, 2009, 08:44:57 pm

you dont need to be an SSH guru, just ask your hosting company if you can SSH into your account and if so the relevant details

did find your comment on "there's no one to turn to for solutions" a bit strange. There is a professional listings page that you can pay folks to help you setup and debug. While CiviCRM is open source, expecting folks to help debug and fix issues which are a bit specific to your site / hosting situation / mailer situation / combination of the above is probably a bit more than what we / the community can offer

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 26, 2009, 08:54:24 pm
We'll give this another shot "remotely"...

1. Confirm that you can do the following successfully:
- Login to Drupal
- Go to Administer CiviCRM >> Configure >> Global Settings >> Outbound Email
- Review your SMTP settings, and assuming they look correct click Save and Send Test Email
- You should receive a test email in your inbox - at the email address entered for your CiviCRM contact record (that is the contact record linked to your Drupal user account).

2. IF this works, now let's confirm the FROM address used in the "Send Test Email" task - just check and note down the exact FROM info in the test email you received.
- You can also confirm this "Default FROM Email Address" by navigating to Administer CiviCRM >> Configure >> FROM Email Addresses

3. Now let's check the FROM email address used when Contribution confirmation emails are sent.
- Navigate to Administer CiviCRM >> CiviContribute >> Manage Contribution Pages
- Click "Configure" action for your live contribution page.
- Click "Thankyou and Receipting"
- Scroll down to the "Receipt from Name" and "Receipt from Email" fields. Set the name and email address to exactly the same values as the name and email address you noted down in step 2 above (since we've seen that our host allows us to use this as our FROM address).

If this doesn't resolve things - I think your best bet is to communicate with Midphase and ask them for guidance (give them the exact error messages and the FROM email address, as well as the SMTP settings you are using).
Protect your investment in CiviCRM by  becoming a Member!

rgracia

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 27, 2009, 06:54:29 am
Thank you all for your replies,

Lobo when I said "there's no one to turn to for solutions" I am implying, under a budget or no budget at all. So basically I am at the mercy of the documentation and good forum members like you who take time during their day to help people out. I am finding that more and more developers or implementers are turning to solutions like this resolve problems that otherwise would be really expensive to implement in a custom solution. That is why why we are using it to begin with. Getting a contractor to get the installation to work correctly is out of the question for us. My comment wasn't meant to rub off on you guys, I know you are all busy and very helpful. I apologize if it did.

Dave I will follow your instructions this morning and post results as soon as I can.

Thanks again.


rgracia

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 27, 2009, 07:47:14 am
Dave, your steps worked but the interesting thing is that I didn't have to change anything at all as they had been saved from my previous attempts when I had the errors. One thing that changed was that we restarted the server a few times since the last time I tested this. In any case, the problem seems to be resolved now. Thanks so much.

Quote from: Dave Greenberg on October 26, 2009, 08:54:24 pm
We'll give this another shot "remotely"...

1. Confirm that you can do the following successfully:
- Login to Drupal
- Go to Administer CiviCRM >> Configure >> Global Settings >> Outbound Email
- Review your SMTP settings, and assuming they look correct click Save and Send Test Email
- You should receive a test email in your inbox - at the email address entered for your CiviCRM contact record (that is the contact record linked to your Drupal user account).

2. IF this works, now let's confirm the FROM address used in the "Send Test Email" task - just check and note down the exact FROM info in the test email you received.
- You can also confirm this "Default FROM Email Address" by navigating to Administer CiviCRM >> Configure >> FROM Email Addresses

3. Now let's check the FROM email address used when Contribution confirmation emails are sent.
- Navigate to Administer CiviCRM >> CiviContribute >> Manage Contribution Pages
- Click "Configure" action for your live contribution page.
- Click "Thankyou and Receipting"
- Scroll down to the "Receipt from Name" and "Receipt from Email" fields. Set the name and email address to exactly the same values as the name and email address you noted down in step 2 above (since we've seen that our host allows us to use this as our FROM address).

If this doesn't resolve things - I think your best bet is to communicate with Midphase and ask them for guidance (give them the exact error messages and the FROM email address, as well as the SMTP settings you are using).


jacoblee

  • Guest
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 27, 2009, 02:02:54 pm
I still have this same problem and I tried Daves fix and it is a no go.

The problem is when a person goes to confirm the contribution the error page mention above comes up but when I go to pull there record their email has been deleted. This only happens to people who are not in the database. If they have an account and have made a contribution in the past it works like a charm.

I have tried to do all I can to fix this and it is an issue that comes up now and again for people on this board. It is something that should be dug into a little more.

This issue only came up once I upgraded to Civi 3 series.

Jacob Lee

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
October 27, 2009, 04:00:22 pm
Jacob - what do you mean by "their email has been deleted"? Best to start another forum post with as much detail about the problem as you can provide.

- Config of contribution page (payment processor, profile(s) used, pay later enabled, etc.). Maybe include link to page and/or screenshot.
- Exact error message and subsequent results  (i.e. contact record is / is not created, required data there or not, contribution record created or not, etc.)
- Can you recreate it? If so, exact steps...
- If not, best ideas about when it happens (what combination of conditions).
Protect your investment in CiviCRM by  becoming a Member!

bails

  • Guest
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
November 26, 2009, 03:00:38 am
Hi I'm getting a similar if not the same error and have done a little testing.
A new user signs up at the contribute page and this error is received. replaced valid mail address with blah@foobar.tld

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 mail library returned the following error message:
Validation failed for: blah@foobar.tld

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.

If I add the user as a drupal user and civicrm contact with the email address of blah@foobar.tld firstly via http://domain.tld/user/register
the contribution page completes and blah@foobar.tld gets emailed a receipt.

If just a drupal user or just a civicrm contact with the email address blah@foobar.tld exists the contribution page returns the same error.

bails

  • Guest
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
November 26, 2009, 05:53:04 am
Replying to oneself.

This behaviour is a result of NOT including a REGISTRATION profile in the contribution page! Not a Bug!

However may I make one small suggestion.  That contribution pages FORCE one to go through each step, step by step rather than  step 1 > save > back to manage contribution page > step 2 > save > back to manage contribution page > step 2 > save > back to manage contribution page. ..

Didn't this used to be the default behaviour?

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
November 26, 2009, 06:23:32 am
Quote from: bails on November 26, 2009, 05:53:04 am
This behaviour is a result of NOT including a REGISTRATION profile in the contribution page! Not a Bug!

I'd say if the contrib membership signup throws an error unless the contrib page has an optional profile configured, then that's a bug.

Dave

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: Outbound Email Errors with CiviContribute Contribution confirmation emails
November 26, 2009, 06:54:30 am

davej:

can u investigate as to why including the registration profile throws an error? seems like a wierd combination (and is a bug)

bails: the contribution page always made the user step thru the process. we'll switch it to the event flow format in a future release

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

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Outbound Email Errors with CiviContribute Contribution confirmation emails

This forum was archived on 2017-11-26.