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) »
  • [Solved] CiviCRM can send emails but Receipt emails never arrive
Pages: [1]

Author Topic: [Solved] CiviCRM can send emails but Receipt emails never arrive  (Read 4738 times)

cleit

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
[Solved] CiviCRM can send emails but Receipt emails never arrive
January 22, 2009, 01:05:55 pm
I've had this problem for a while now and keep hoping it will sort itself, but it doesn't!

Emails appear to work in all of CiviCRM except for notification of profile submission, receipt-sending and activation emails to new members after they sign up.

I can successfully send emails to contacts using CiviCRM, and I have 2 custom profiles that also successfully send emails automatically when they are used to update a contact's details - but not when they are used to collect details as part of a new member sign up.

I've tried both SMTP and Sendmail to send the emails and in both cases I get the results above : no CiviCRM email associated with membership signup is ever received (I don't know if it's sent, but it's not received and this isn't because of any spam filtering at the recipient's server).

The FROM emails that I've entered are real addresses hosted by the same company as the mail servers, and the automatic receipt template exists ready for sending. The payments are processed using PayPal and this is working fine - the payment is made and a PayPal receipt is received by the new member and a PayPal notification of a payment received comes to me.

The strange thing is that several weeks after first running test sign-ups, the test members started to get the correct receipts - the dates of sign-up were(correctly) several weeks prior, but the dates in the header showed that the emails had not been sent from the host servers until shortly before they were received several weeks late. This delayed sending has stopped now, and i just don't receive anything no matter how long I wait.

I don't understand where this delay could come from -the processing of receipts doesn't require a Cron job (does it?). And I don't get delays with any emails I send manually to Civicrm contacts, nor those sent automatically when the custom profiles are used by an existing member to update their details.

Anyone got any ideas??

Yhanks

Ian
« Last Edit: March 24, 2009, 04:06:22 am by cleit »

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: CiviCRM can send emails but Receipt emails never arrive
January 22, 2009, 03:10:01 pm

1. i assume u have entered valid from email address in the membership sign up forms (this is for receipt sending)

http://drupal.demo.civicrm.org/civicrm/contribute/manage?reset=1&action=update&id=1&subPage=ThankYou

Please double check that and ensure that it is a valid email account on mail server. Also use the same FROM  email when you are sending via Send Email to contacts to triply make sure :)

2. Can you get access to your mail server logs? that will help you check to see if CiviCRM was sending email

3. by "activation emails to new members", i assume you mean the drupal new account email?

4. When a profile is part of a "new member signup" page, we do not send an email. This is inconsistent behavior and we will be fixing this in 2.3

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

cleit

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: CiviCRM can send emails but Receipt emails never arrive
January 22, 2009, 03:59:39 pm
Yes the email address is valid - it's the main 'admin' email address for the site and it's used as the FROM  in emails to contacts and for the recipts and profile submission notifications.

I've asked the host if it's possible to check the mail logs - they're usually helpful, so fingers crossed!

Now that you question the 'activation email' I realise that of course that's part of Joomla - and so isn't sent as part of the member signup! So, given that profile submission emails aren't sent for a signup, I guess that the only email that's not being sent is the CiviContribute receipt. I'll go back and check again that the receipt email is set up properly.

Thanks

Ian

cleit

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: CiviCRM can send emails but Receipt emails never arrive
March 03, 2009, 12:38:58 pm
At last I've managed to get the smtp log information from the host. It appears that there is no contact being made with the server when a new member signs up - so no attempt to send a receipt email  to the member nor a notification email to the administrator as set in the profile.

Could some one point me to the appropriate bit of code that controls the receipting behaviour so I can see if I can get any idea about what's wrong?

Thanks

Ian

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: CiviCRM can send emails but Receipt emails never arrive
March 03, 2009, 03:43:25 pm

took a long time to get those smtp logs :)

the code for sending the receipt email is at:

CRM/Contribute/BAO/Contribution/Utils.php, line 208 or line 144 (CRM_Contribute_BAO_ContributionPage::sendMail)

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

cleit

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: CiviCRM can send emails but Receipt emails never arrive
March 04, 2009, 12:59:58 am
Yeah I know - that's because I made the mistake of saying the host was good.... ;)

Thanks for the info - will investigate.

cleit

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
No receipt because "Incomplete Transaction"?
March 19, 2009, 02:24:38 pm
Hello again, I know this is dragging on....sorry!...I'm just not getting the time to tackle it properly.

I'm wondering now if it's not a receipting problem per se, but that it's due to the signup being an 'incomplete transaction'. I just renewed a membership for real, using live payment, and everything went fine, money transferred, receipt received from PayPal (though as before no receipt from civicrrm). However when i check the membership record it says that its Contribution Status is "Pending (Transaction incomplete)" and that therefore no receipt has been sent. Checking back ato all the other signups i've tried reveals the same thing - they're all Pending Incomplete transaction

So my question now is have I misconfigured something, or what other reason could there be for the Incomplete Transaction status (what is civicrm waiting for before it considers the transaction complete?)

Thanks again for your patience!

Cheers
Ian
« Last Edit: March 19, 2009, 02:35:58 pm by cleit »

cleit

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: CiviCRM can send emails but Receipt emails never arrive
March 24, 2009, 04:05:47 am
OK the 'Pending' status gave me the clue as to the problem. Nothing at all to do with CiviCRM! The Instant Payment Notification wasn't set up correctly in PayPal.

Ian

Cyberflyer

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
  • It's a piece of cake, Ezra!!
    • North Star Community Foundation
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.34 / Commons 7.x-3.20
  • MySQL version: 5.5.13
  • PHP version: 5.4.38
Re: [Solved] CiviCRM can send emails but Receipt emails never arrive
June 19, 2013, 03:28:33 pm
Thanks for this.  I had the same problem.  I had the IPN still pointed at my test URL, which is why the email receipts were not being sent for me.  Status was 'pending' now it is complete and the mails get posted.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • [Solved] CiviCRM can send emails but Receipt emails never arrive

This forum was archived on 2017-11-26.