3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 class CRM_Mailing_Config
{
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;
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;