Merge pull request #19351 from mlutfy/fixSoftLoc
[civicrm-core.git] / CRM / Mailing / Config.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17 class CRM_Mailing_Config {
18
19 const OUTBOUND_OPTION_SMTP = 0;
20 const OUTBOUND_OPTION_SENDMAIL = 1;
21 const OUTBOUND_OPTION_DISABLED = 2;
22 const OUTBOUND_OPTION_MAIL = 3;
23 // seems to be the same as 2, but also calls Mail's pre/post hooks? - see packages/Mail
24 const OUTBOUND_OPTION_MOCK = 4;
25 const OUTBOUND_OPTION_REDIRECT_TO_DB = 5;
26
27 // special value for mail bulk inserts to avoid
28 // potential duplication, assuming a smaller number reduces number of queries
29 // by some factor, so some tradeoff. CRM-8678
30 // dev/core#1768 Remove this after Dec 2020.
31 // Replaced with civimail_sync_interval.
32 const BULK_MAIL_INSERT_COUNT = 10;
33
34 }