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 CiviContribute (Moderator: Donald Lobo) »
  • Notification e-mails when contributions are purchased
Pages: [1] 2

Author Topic: Notification e-mails when contributions are purchased  (Read 3796 times)

davo

  • Guest
Notification e-mails when contributions are purchased
February 14, 2008, 05:40:25 pm
I'm running tests on my contribution pages now. Each one is setup to notify a specific e-mail address when they're purchased (via "Thank-you and Receipting"). I've just completed a test purchase (using the live Paypal system) and I did not receive any e-mails from CiviCRM. The contribution is shown as complete, suggesting the workflow is ok. And Paypal sent notifications of the payment to the purchaser and vendor, suggesting the payment worked. What do I need to do to ensure the CiviCRM notification e-mails are sent?

(I've tested the e-mail address the notifications are supposed to be sent to and it's working. I've configured the outbound SMTP server at "Settings - SMTP Configuration" and I've double-checked the settings.)

PS: I'm using CiviCRM 1.9.x and Drupal 5.x. Drupal notification e-mails (eg. from the update module) are sent correctly.
« Last Edit: February 14, 2008, 05:51:09 pm by davo »

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: Notification e-mails when contributions are purchased
February 15, 2008, 10:27:49 am

1. can u ensure that civicrm can send email. a good way to make sure is to try the action "send email to contacts" accessible from the search results page

2. You might also want to check your mail logs and see if you can find anything there

3. finally u can enable debugging in the smtp library (check the forums) and trace it from there

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: Notification e-mails when contributions are purchased
February 15, 2008, 10:36:05 am
One other thing to check is that the FROM email you've specified under "Thank you and receipting" >> "Receipt From Email" is a valid email sender in your environment.
Protect your investment in CiviCRM by  becoming a Member!

davo

  • Guest
Re: Notification e-mails when contributions are purchased
February 15, 2008, 01:31:21 pm
Hmmm. Do you know if an e-mail address that is just a forwarding address, ie. has no corresponding account, constitutes a valid  e-mail sender?

I'll try the ideas out now.

davo

  • Guest
Re: Notification e-mails when contributions are purchased
February 15, 2008, 01:39:45 pm
So sending e-mail to contacts fails with the following error message. Any thoughts?

------------------------------------------------------------
     Sorry. A non-recoverable error has occurred.

    Array

    Return to home page.

Error Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=>
    [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=""]
)

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: Notification e-mails when contributions are purchased
February 15, 2008, 03:05:07 pm

is exim your mail server by any chance? Please search the forums for exim and smtp. There are some unresolved issues between exim and pear smtp

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

davo

  • Guest
Re: Notification e-mails when contributions are purchased
February 15, 2008, 03:17:19 pm
It's possible. I'm with Dreamhost (dreamhost.com) and their online doco does mention exim4. I just can't tell if its the e-mail package I'm using. There is a /var/log/exim4 directory but I don't have access.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Notification e-mails when contributions are purchased
February 15, 2008, 03:22:57 pm
I would search this forum for other instances of that error message - there are several potential causes and solutions. You could also try to get your hosting service to check their mailserver logs and give you guidance.
Protect your investment in CiviCRM by  becoming a Member!

davo

  • Guest
Re: Notification e-mails when contributions are purchased
February 15, 2008, 04:33:31 pm
Thanks. I've already ask my hosting provider for mail logs - no joy yet. I'll search as you suggest.

davo

  • Guest
Re: Notification e-mails when contributions are purchased
February 16, 2008, 08:54:03 pm
Turns out Dreamhost use postfix, so it seems this is not an Exim integration error. I can't get access to the logs either :(

Any other thoughts or suggestions?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Notification e-mails when contributions are purchased
February 18, 2008, 10:01:57 am
In the past, that error has most often been a result of smtp authentication configuration problems (wrong password, FROM email address not a valid sender for the domain, etc.). Pretty sure there are some threads on this forum with instructions for adding debug statements to CiviCRM to get additional clues.
Protect your investment in CiviCRM by  becoming a Member!

davo

  • Guest
Re: Notification e-mails when contributions are purchased
February 20, 2008, 12:47:13 pm
Here's a (possibly) silly question. Does CiviMail need to be enabled for these sorts of outgoing e-mails?

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: Notification e-mails when contributions are purchased
February 20, 2008, 03:54:59 pm

We dont need civimail enabled for this

Your best bet would be to edit packages/Mail/smtp.php and try to debug the function send( ) there. Its an issue with the smtp package and your mail server. You might get a bit more detailed error messages there. Note that you need some php skills to add and decipher debugging output in the package

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

davo

  • Guest
Re: Notification e-mails when contributions are purchased
February 21, 2008, 01:28:19 am
OK, so I enabled debugging in smtp.php and I got the trace included below when I tried to "send e-mail to contacts". I double-checked I had a contact with a valid e-mail address.

There's no value in the trace for "rcpt to:" which may explain the error. Not sure if the trace has a bug which omits this value, or for some reason CiviCRM is trying to send to an empty e-mail address. Any thoughts?


DEBUG: Recv: 220 spaceymail-a2.g.dreamhost.com ESMTP
DEBUG: Send: EHLO localhost
DEBUG: Recv: 250-spaceymail-a2.g.dreamhost.com
DEBUG: Recv: 250-PIPELINING
DEBUG: Recv: 250-SIZE 40960000
DEBUG: Recv: 250-ETRN DEBUG: Recv: 250-STARTTLS
DEBUG: Recv: 250-AUTH LOGIN PLAIN
DEBUG: Recv: 250-AUTH=LOGIN PLAIN
DEBUG: Recv: 250 8BITMIME
DEBUG: Send: MAIL FROM:
DEBUG: Recv: 250 Ok
DEBUG: Send: RCPT TO:
DEBUG: Recv: 554 : Recipient address rejected: Access denied


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: Notification e-mails when contributions are purchased
February 21, 2008, 12:31:40 pm

the trace does not display the mail form / rcpt to addresses. you might want to add your own debug statements to print those two addresses out. That might give you a clue as to why dreamhost is rejecting the rcpt to address

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 »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Notification e-mails when contributions are purchased

This forum was archived on 2017-11-26.