Answers.Body: <p>It's recommended to <strong>use CiviMail for larger mailouts</strong>. It's worth understanding the potential consequences of using "simple CiviCRM mail" to do mails in bulk; eg:</p>
  
  <ul>
  <li>Harming your own site's spam reputation by sending many emails without spam compliant unsubscribe links.</li>
  <li>Harming CiviCRM platform email reputation by using CiviCRM without respect to spam compliance.</li>
  <li>Timeouts and performance issues when trying to deliver large numbers of emails in a single request.</li>
  <li>... ?</li>
  </ul>
  
  <p>So, this has long been hard-coded in an attempt to avoid people changing it. <strong>The limit is no longer hard-coded</strong>; it's become a hidden setting: <code>simple_mail_limit</code>. You should be able to change this setting from the default either by using the CLI tool <code>cv</code>:</p>
  
  <pre><code>cv api setting.create simple_mail_limit=99
  </code></pre>
  
  <p>Or by adding a setting override in <code>civicrm.settings.php</code>:</p>
  
  <pre><code>global $civicrm_setting;
  $civicrm_setting['other']['simple_mail_limit'] = 99;
  </code></pre>
  
  <p>See <a href="https://docs.civicrm.org/sysadmin/en/latest/customize/settings/#hidden-settings" rel="noreferrer">configuring hidden settings in CiviCRM</a> for more info, and do take note of advice here to reflect on <em>why</em> you think you need to change this value!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-28T20:16:02.490Z
Answers.Text: I highly recommend understanding *why* this isn't a setting exposed for easy configuration; good starting points may be [CRM-20905: Simple mail : Make max emails a hidden config instead of hardcoded value set to 50](https://issues.civicrm.org/jira/browse/CRM-20905), [PR discussion #10693](https://github.com/civicrm/civicrm-core/pull/10693) (Not sure if the extension mentioned here to expose the setting as UI exists?) and [PR discussion #10705](https://github.com/civicrm/civicrm-core/pull/10705)
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-29T11:07:33.827Z
Answers.Text: Many thanks for your response(s). I fully understand the rationale and consequences. However I have one user who needs to send to a small group of a little over 50 contacts and I need to humour him! Now that we are using Mosaico there is no real difference to send using the bulk or transactional email. Given your response I am now able to make up my own mind about the way that we approach this.
Answers.UserDisplayName: Martin Fuggle
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-29T20:04:04.177Z
Answers.Text: Great! And yeah, I agree this may fit *your* situation well - this is a community resource and I'm also writing with future readers in mind who might not recognise the difference between using CiviCRM's direct and bulk mail systems if the warnings aren't clear :D If this response was helpful, please remember to [mark the answer accepted](https://civicrm.stackexchange.com/help/someone-answers) - this will help future people in your situation to resolve the same!
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-28T20:12:47.797Z
Answers.LastActivityDate: 2017-10-28T20:43:10.333Z
Answers.LastEditDate: 2017-10-28T20:43:10.333Z
Answers.UserDisplayName: Chris Burgess
Body: <p>I'm sure I read recently that it was possible to change the maximum number of emails that can be sent using the transactional mail in CiviCRM. Did I imagine this or can the hard coded limit of 50 be set to another value?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-28T10:53:22.707Z
Comments.Text: I am not sure where you can change the limit of sending 50 transactional emails in one go....but I would like to warn you that if you change that limit the chances of getting blacklisted will increase!
Comments.UserDisplayName: ErikH - CiviCooP
Tags: <email>
Title: How to change hard coded limit of 50 transactional emails?
ThreadText: # How to change hard coded limit of 50 transactional emails?
  
  (Asked by: username_0 on 2017-10-28)
  
  I'm sure I read recently that it was possible to change the maximum number of emails that can be sent using the transactional mail in CiviCRM. Did I imagine this or can the hard coded limit of 50 be set to another value?
  
  **Tags:** email
  
  > **Comments:**
  > **username_1**: I am not sure where you can change the limit of sending 50 transactional emails in one go....but I would like to warn you that if you change that limit the chances of getting blacklisted will increase!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-10-28. Score: 16
  
  It's recommended to **use CiviMail for larger mailouts**. It's worth understanding the potential consequences of using "simple CiviCRM mail" to do mails in bulk; eg:
  
  * Harming your own site's spam reputation by sending many emails without spam compliant unsubscribe links.
  * Harming CiviCRM platform email reputation by using CiviCRM without respect to spam compliance.
  * Timeouts and performance issues when trying to deliver large numbers of emails in a single request.
  * ... ?
  
  So, this has long been hard-coded in an attempt to avoid people changing it. **The limit is no longer hard-coded**; it's become a hidden setting: `simple_mail_limit`. You should be able to change this setting from the default either by using the CLI tool `cv`:
  
  ```
  cv api setting.create simple_mail_limit=99
  
  ```
  
  Or by adding a setting override in `civicrm.settings.php`:
  
  ```
  global $civicrm_setting;
  $civicrm_setting['other']['simple_mail_limit'] = 99;
  
  ```
  
  See [configuring hidden settings in CiviCRM](https://docs.civicrm.org/sysadmin/en/latest/customize/settings/#hidden-settings) for more info, and do take note of advice here to reflect on *why* you think you need to change this value!
  
  > **Comments:**
  > **username_2**: I highly recommend understanding *why* this isn't a setting exposed for easy configuration; good starting points may be [CRM-20905: Simple mail : Make max emails a hidden config instead of hardcoded value set to 50](https://issues.civicrm.org/jira/browse/CRM-20905), [PR discussion #10693](https://github.com/civicrm/civicrm-core/pull/10693) (Not sure if the extension mentioned here to expose the setting as UI exists?) and [PR discussion #10705](https://github.com/civicrm/civicrm-core/pull/10705)  
  > **username_0**: Many thanks for your response(s). I fully understand the rationale and consequences. However I have one user who needs to send to a small group of a little over 50 contacts and I need to humour him! Now that we are using Mosaico there is no real difference to send using the bulk or transactional email. Given your response I am now able to make up my own mind about the way that we approach this.  
  > **username_2**: Great! And yeah, I agree this may fit *your* situation well - this is a community resource and I'm also writing with future readers in mind who might not recognise the difference between using CiviCRM's direct and bulk mail systems if the warnings aren't clear :D If this response was helpful, please remember to [mark the answer accepted](https://civicrm.stackexchange.com/help/someone-answers) - this will help future people in your situation to resolve the same!  
  
  ---
  
  