Answers.Body: <p>You could probably achieve this with the CiviRules extension? The extension can be found here: <a href="https://civicrm.org/extensions/civirules/version-113" rel="nofollow noreferrer">https://civicrm.org/extensions/civirules/version-113</a> and the documentation here: <a href="https://docs.civicrm.org/civirules/en/latest/" rel="nofollow noreferrer">https://docs.civicrm.org/civirules/en/latest/</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-10T23:59:57.267Z
Answers.Text: Yes that should work
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-10T19:17:17.003Z
Answers.LastActivityDate: 2017-11-10T19:17:17.003Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I am using drupal, civicrm version 4.7.27.  I would like email receipts from CiviCRM to be sent immediately for recurring contribution, rather than waiting for Authorize.net to process the credit card overnight.  In previous versions, there was code in the file CRM\Contribute\BAO\Contribution\Utils.php that I could comment out, to override the default behavior for receipt.  This was the code I commented out: 
  //Do not send an email if Recurring contribution is done via Direct Mode
  //We will send email once the IPN is received.
  //if (!empty($paymentParams['is_recur']) &amp;&amp; $form->_contributeMode == 'direct'){
  //  return TRUE;
  //}</p>
  
  <p>This code no longer exists.  Can anyone tell me if there is a way in version 4.7.27 to force CiviCRM to send a receipt immediately for a recurring contribution, even if it has not yet been processed by Authorize.net?</p>
  
  <p>Thanks!</p>
  
Tags: <civicontribute><authorize.net>
Title: Send civicrm email receipt immediately for recurring contributions - Authorize.net
ThreadText: # Send civicrm email receipt immediately for recurring contributions - Authorize.net
  
  (Asked by: username_0 on 2017-11-10)
  
  I am using drupal, civicrm version 4.7.27. I would like email receipts from CiviCRM to be sent immediately for recurring contribution, rather than waiting for Authorize.net to process the credit card overnight. In previous versions, there was code in the file CRM\Contribute\BAO\Contribution\Utils.php that I could comment out, to override the default behavior for receipt. This was the code I commented out:
  //Do not send an email if Recurring contribution is done via Direct Mode
  //We will send email once the IPN is received.
  //if (!empty($paymentParams['is\_recur']) && $form->\_contributeMode == 'direct'){
  // return TRUE;
  //}
  
  This code no longer exists. Can anyone tell me if there is a way in version 4.7.27 to force CiviCRM to send a receipt immediately for a recurring contribution, even if it has not yet been processed by Authorize.net?
  
  Thanks!
  
  **Tags:** civicontribute, authorize.net
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-10. Score: 1
  
  You could probably achieve this with the CiviRules extension? The extension can be found here: <https://civicrm.org/extensions/civirules/version-113> and the documentation here: <https://docs.civicrm.org/civirules/en/latest/>
  
  > **Comments:**
  > **username_2**: Yes that should work  
  
  ---
  
  