Merge pull request #23970 from MegaphoneJon/false-not-zero
[civicrm-core.git] / CRM / Mailing / Config.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
bc77d7c0 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
bc77d7c0
TO
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 |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035 16 */
3dbcd89d 17class CRM_Mailing_Config {
6a488035
TO
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;
7e8c8317
SL
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;
6a488035
TO
25 const OUTBOUND_OPTION_REDIRECT_TO_DB = 5;
26
dfb542fc
J
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
2de3eb58
SP
30 // dev/core#1768 Remove this after Dec 2020.
31 // Replaced with civimail_sync_interval.
dfb542fc
J
32 const BULK_MAIL_INSERT_COUNT = 10;
33
6a488035 34}