Answers.Body: <p>There is no such way to stop recurring notification being send out from CiviCRM. Current code at line 567 in <a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Contribute/BAO/ContributionPage.php#L567" rel="nofollow noreferrer">CRM/Contribute/BAO/ContributionPage.php</a> checks for $isEmailReceipt which is either set using is_email_receipt of contribution page or if recurring is recorded offline.</p>
  
  <p>Two ways of handling this:</p>
  
  <ol>
  <li><p>Change in core :</p>
  
  <ul>
  <li>Add checkbox field on payment processor form 'Notify user about
  recurring payments?' </li>
  <li>Change code at line 567 in
  <a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Contribute/BAO/ContributionPage.php#L567" rel="nofollow noreferrer">CRM/Contribute/BAO/ContributionPage.php</a> to check if 'Notify user
  about recurring payments?' is TRUE.</li>
  </ul></li>
  <li><p>Through extension:</p>
  
  <ul>
  <li>Add checkbox field on payment processor form 'Notify user about
  recurring payments?' using <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/" rel="nofollow noreferrer">buildForm</a> hook and store value in 
  extension custom table.</li>
  <li>Using <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMailParams/" rel="nofollow noreferrer">alterMailParams</a> hook abort the email if 'Notify user about
  recurring payments?' is true for the payment processor used and Message template == Recurring Noification.</li>
  </ul></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-02T12:40:13.330Z
Answers.Text: Hey Pradeep, Thanks for posting. Not sure, but it seems the above code will get called for recurring start and end notification only? If yes, I've handled this case by aborting `contribution_recurring_notify` template from alterMailParam hook. But, the periodic emails do get sent after the scheduled payment is done. Seems they use the normal contribution receipt template? Just throwing hard guesses ;-)
Answers.UserDisplayName: jitendra - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-02T12:50:38.403Z
Answers.Text: contribution_recurring_notify gets send for first and last payment of contribution recur. For subsequent payments the normal online or offline receipt for contribution or membership message template is used to send which has recurring details i guess.
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-02T11:20:47.053Z
Answers.LastActivityDate: 2018-01-02T11:20:47.053Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Current civi behaviour is that whenever a recurring payment is made using a contribution page, two emails are sent.</p>
  
  <ul>
  <li>Contribution Receipt AND</li>
  <li>Recurring start notification.</li>
  </ul>
  
  <p>Now, when the next scheduled date occurs, a contribution is recorded which additionally send an email to the user notifying about the recur payment.</p>
  
  <p>We don't want this recur start, periodic emails and the end notification to be sent by CiviCRM.</p>
  
  <p>We've written a small extension which is able to stop the start and end notification. Is there an existing way to stop periodic recur e-mails?</p>
  
  <p>CiviCRM version 4.7.29.</p>
  
Tags: <extension><email><recurring-contributions>
Title: Stop recur mails from sending out to users
ThreadText: # Stop recur mails from sending out to users
  
  (Asked by: username_0 on 2018-01-02)
  
  Current civi behaviour is that whenever a recurring payment is made using a contribution page, two emails are sent.
  
  * Contribution Receipt AND
  * Recurring start notification.
  
  Now, when the next scheduled date occurs, a contribution is recorded which additionally send an email to the user notifying about the recur payment.
  
  We don't want this recur start, periodic emails and the end notification to be sent by CiviCRM.
  
  We've written a small extension which is able to stop the start and end notification. Is there an existing way to stop periodic recur e-mails?
  
  CiviCRM version 4.7.29.
  
  **Tags:** extension, email, recurring-contributions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-01-02. Score: 2
  
  There is no such way to stop recurring notification being send out from CiviCRM. Current code at line 567 in [CRM/Contribute/BAO/ContributionPage.php](https://github.com/civicrm/civicrm-core/blob/master/CRM/Contribute/BAO/ContributionPage.php#L567) checks for $isEmailReceipt which is either set using is\_email\_receipt of contribution page or if recurring is recorded offline.
  
  Two ways of handling this:
  
  1. Change in core :
  
     * Add checkbox field on payment processor form 'Notify user about
       recurring payments?'
     * Change code at line 567 in
       [CRM/Contribute/BAO/ContributionPage.php](https://github.com/civicrm/civicrm-core/blob/master/CRM/Contribute/BAO/ContributionPage.php#L567) to check if 'Notify user
       about recurring payments?' is TRUE.
  2. Through extension:
  
     * Add checkbox field on payment processor form 'Notify user about
       recurring payments?' using [buildForm](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/) hook and store value in
       extension custom table.
     * Using [alterMailParams](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMailParams/) hook abort the email if 'Notify user about
       recurring payments?' is true for the payment processor used and Message template == Recurring Noification.
  
  > **Comments:**
  > **username_0**: Hey username_1, Thanks for posting. Not sure, but it seems the above code will get called for recurring start and end notification only? If yes, I've handled this case by aborting `contribution_recurring_notify` template from alterMailParam hook. But, the periodic emails do get sent after the scheduled payment is done. Seems they use the normal contribution receipt template? Just throwing hard guesses ;-)  
  > **username_1**: contribution_recurring_notify gets send for first and last payment of contribution recur. For subsequent payments the normal online or offline receipt for contribution or membership message template is used to send which has recurring details i guess.  
  
  ---
  
  