unit test for case audit
[civicrm-core.git] / settings / Mailing.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
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
TO
16 * $Id$
17 *
18 */
19/*
20 * Settings metadata file
21 */
22
dfe1f88a
CW
23return [
24 'profile_double_optin' => [
6a488035
TO
25 'group_name' => 'Mailing Preferences',
26 'group' => 'mailing',
27 'name' => 'profile_double_optin',
74f89a9f 28 'type' => 'Boolean',
6a488035 29 'html_type' => 'checkbox',
007e3bdc 30 'default' => '1',
6a488035 31 'add' => '4.1',
74f89a9f 32 'title' => ts('Enable Double Opt-in for Profile Group(s) field'),
6a488035
TO
33 'is_domain' => 1,
34 'is_contact' => 0,
74f89a9f 35 'description' => ts('When CiviMail is enabled, users who "subscribe" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.'),
08e57c58 36 'help_text' => NULL,
dfe1f88a
CW
37 ],
38 'track_civimail_replies' => [
6a488035
TO
39 'group_name' => 'Mailing Preferences',
40 'group' => 'mailing',
41 'name' => 'track_civimail_replies',
74f89a9f 42 'type' => 'Boolean',
6a488035 43 'html_type' => 'checkbox',
007e3bdc 44 'default' => '0',
6a488035 45 'add' => '4.1',
74f89a9f 46 'title' => ts('Track replies using VERP in Reply-To header'),
6a488035
TO
47 'is_domain' => 1,
48 'is_contact' => 0,
74f89a9f 49 'description' => ts('If checked, mailings will default to tracking replies using VERP-ed Reply-To. '),
08e57c58 50 'help_text' => NULL,
6a488035 51 'validate_callback' => 'CRM_Core_BAO_Setting::validateBoolSetting',
dfe1f88a
CW
52 ],
53 'civimail_workflow' => [
6a488035
TO
54 'group_name' => 'Mailing Preferences',
55 'group' => 'mailing',
56 'name' => 'civimail_workflow',
74f89a9f 57 'type' => 'Boolean',
6a488035 58 'html_type' => 'checkbox',
007e3bdc 59 'default' => '0',
6a488035 60 'add' => '4.1',
74f89a9f 61 'title' => ts('Enable workflow support for CiviMail'),
6a488035
TO
62 'is_domain' => 1,
63 'is_contact' => 0,
74f89a9f 64 'description' => ts('Drupal-only. Rules module must be enabled (beta feature - use with caution).'),
08e57c58 65 'help_text' => NULL,
dfe1f88a
CW
66 ],
67 'civimail_server_wide_lock' => [
6a488035
TO
68 'group_name' => 'Mailing Preferences',
69 'group' => 'mailing',
70 'name' => 'civimail_server_wide_lock',
74f89a9f 71 'type' => 'Boolean',
6a488035 72 'html_type' => 'checkbox',
007e3bdc 73 'default' => '0',
6a488035 74 'add' => '4.1',
74f89a9f 75 'title' => ts('Enable global server wide lock for CiviMail'),
6a488035
TO
76 'is_domain' => 1,
77 'is_contact' => 0,
08e57c58
TO
78 'description' => NULL,
79 'help_text' => NULL,
dfe1f88a
CW
80 ],
81 'replyTo' => [
6098a966
TO
82 'group_name' => 'Mailing Preferences',
83 'group' => 'mailing',
84 'name' => 'replyTo',
85 'type' => 'Boolean',
86 'quick_form_type' => 'YesNo',
87 'default' => 0,
88 'add' => '4.6',
89 'title' => 'Enable Custom Reply-To',
90 'is_domain' => 1,
91 'is_contact' => 0,
92 'description' => 'Allow CiviMail users to send mailings with a custom Reply-To header',
93 'help_text' => NULL,
dfe1f88a
CW
94 ],
95 'mailing_backend' => [
6a488035
TO
96 'group_name' => 'Mailing Preferences',
97 'group' => 'mailing',
98 'name' => 'mailing_backend',
99 'type' => 'Array',
100 'html_type' => 'checkbox',
dfe1f88a 101 'default' => ['outBound_option' => '3'],
6a488035 102 'add' => '4.1',
66f90900 103 'title' => 'Mailing Backend',
6a488035
TO
104 'is_domain' => 1,
105 'is_contact' => 0,
08e57c58
TO
106 'description' => NULL,
107 'help_text' => NULL,
dfe1f88a
CW
108 ],
109 'profile_add_to_group_double_optin' => [
6a488035
TO
110 'group_name' => 'Mailing Preferences',
111 'group' => 'mailing',
112 'name' => 'profile_add_to_group_double_optin',
74f89a9f 113 'type' => 'Boolean',
6a488035 114 'html_type' => 'checkbox',
007e3bdc 115 'default' => '0',
6a488035 116 'add' => '4.1',
0dd00ae1 117 'title' => ts('Enable Double Opt-in for Profiles which use the "Add to Group" setting'),
6a488035
TO
118 'is_domain' => 1,
119 'is_contact' => 0,
0dd00ae1 120 'description' => ts('When CiviMail is enabled and a profile uses the "Add to Group" setting, users who complete the profile form will receive a confirmation email. They must respond (opt-in) before they are added to the group.'),
08e57c58 121 'help_text' => NULL,
dfe1f88a
CW
122 ],
123 'disable_mandatory_tokens_check' => [
9babb598
OB
124 'group_name' => 'Mailing Preferences',
125 'group' => 'mailing',
126 'name' => 'disable_mandatory_tokens_check',
74f89a9f 127 'type' => 'Boolean',
9babb598
OB
128 'html_type' => 'checkbox',
129 'default' => 0,
130 'add' => '4.4',
74f89a9f 131 'title' => ts('Disable check for mandatory tokens'),
9babb598
OB
132 'is_domain' => 1,
133 'is_contact' => 0,
74f89a9f 134 'description' => ts('Don\'t check for presence of mandatory tokens (domain address; unsubscribe/opt-out) before sending mailings. WARNING: Mandatory tokens are a safe-guard which facilitate compliance with the US CAN-SPAM Act. They should only be disabled if your organization adopts other mechanisms for compliance or if your organization is not subject to CAN-SPAM.'),
08e57c58 135 'help_text' => NULL,
dfe1f88a
CW
136 ],
137 'dedupe_email_default' => [
9d76357a
DG
138 'group_name' => 'Mailing Preferences',
139 'group' => 'mailing',
140 'name' => 'dedupe_email_default',
74f89a9f 141 'type' => 'Boolean',
9d76357a
DG
142 'html_type' => 'checkbox',
143 'default' => 1,
144 'add' => '4.5',
74f89a9f 145 'title' => ts('CiviMail dedupes e-mail addresses by default'),
9d76357a
DG
146 'is_domain' => 1,
147 'is_contact' => 0,
74f89a9f 148 'description' => ts('Set the "dedupe e-mail" option when sending a new mailing to "true" by default.'),
08e57c58 149 'help_text' => NULL,
dfe1f88a
CW
150 ],
151 'hash_mailing_url' => [
c57f36a1
PJ
152 'group_name' => 'Mailing Preferences',
153 'group' => 'mailing',
154 'name' => 'hash_mailing_url',
74f89a9f 155 'type' => 'Boolean',
c57f36a1
PJ
156 'html_type' => 'checkbox',
157 'default' => 0,
158 'add' => '4.5',
74f89a9f 159 'title' => ts('Hashed Mailing URL\'s'),
c57f36a1
PJ
160 'is_domain' => 1,
161 'is_contact' => 0,
74f89a9f 162 'description' => ts('If enabled, a randomized hash key will be used to reference the mailing URL in the mailing.viewUrl token, instead of the mailing ID'),
08e57c58 163 'help_text' => NULL,
dfe1f88a
CW
164 ],
165 'civimail_multiple_bulk_emails' => [
84fb7424
TO
166 'group_name' => 'Mailing Preferences',
167 'group' => 'mailing',
168 'name' => 'civimail_multiple_bulk_emails',
74f89a9f 169 'type' => 'Boolean',
84fb7424
TO
170 'html_type' => 'checkbox',
171 'default' => 0,
172 'add' => '4.5',
74f89a9f 173 'title' => ts('Enable multiple bulk email address for a contact.'),
84fb7424
TO
174 'is_domain' => 1,
175 'is_contact' => 0,
38056b36 176 'description' => ts('CiviMail will deliver a copy of the email to each bulk email listed for the contact. Enabling this setting will also change the options for the "Email on Hold" field in Advanced Search.'),
84fb7424 177 'help_text' => NULL,
dfe1f88a
CW
178 ],
179 'include_message_id' => [
89595c92
TO
180 'group_name' => 'Mailing Preferences',
181 'group' => 'mailing',
182 'name' => 'include_message_id',
74f89a9f 183 'type' => 'Boolean',
89595c92
TO
184 'html_type' => 'checkbox',
185 'default' => FALSE,
186 'add' => '4.5',
74f89a9f 187 'title' => ts('Enable CiviMail to generate Message-ID header'),
89595c92
TO
188 'is_domain' => 1,
189 'is_contact' => 0,
190 'description' => '',
191 'help_text' => NULL,
dfe1f88a
CW
192 ],
193 'mailerBatchLimit' => [
988689cc
TO
194 'group_name' => 'Mailing Preferences',
195 'group' => 'mailing',
196 'name' => 'mailerBatchLimit',
197 'type' => 'Integer',
198 'quick_form_type' => 'Element',
199 'html_type' => 'text',
dfe1f88a 200 'html_attributes' => [
988689cc
TO
201 'size' => 4,
202 'maxlength' => 8,
dfe1f88a 203 ],
988689cc
TO
204 'default' => 0,
205 'add' => '4.7',
206 'title' => 'Mailer Batch Limit',
207 'is_domain' => 1,
208 'is_contact' => 0,
209 'description' => 'Throttle email delivery by setting the maximum number of emails sent during each CiviMail run (0 = unlimited).',
210 'help_text' => NULL,
dfe1f88a
CW
211 ],
212 'mailerJobSize' => [
988689cc
TO
213 'group_name' => 'Mailing Preferences',
214 'group' => 'mailing',
215 'name' => 'mailerJobSize',
216 'type' => 'Integer',
217 'quick_form_type' => 'Element',
218 'html_type' => 'text',
dfe1f88a 219 'html_attributes' => [
988689cc
TO
220 'size' => 4,
221 'maxlength' => 8,
dfe1f88a 222 ],
988689cc
TO
223 'default' => 0,
224 'add' => '4.7',
225 'title' => 'Mailer Job Size',
226 'is_domain' => 1,
227 'is_contact' => 0,
228 'description' => 'If you want to utilize multi-threading enter the size you want your sub jobs to be split into. Recommended values are between 1,000 and 10,000. Use a lower value if your server has multiple cron jobs running simultaneously, but do not use values smaller than 1,000. Enter "0" to disable multi-threading and process mail as one single job - batch limits still apply.',
229 'help_text' => NULL,
dfe1f88a
CW
230 ],
231 'mailerJobsMax' => [
988689cc
TO
232 'group_name' => 'Mailing Preferences',
233 'group' => 'mailing',
234 'name' => 'mailerJobsMax',
235 'type' => 'Integer',
236 'quick_form_type' => 'Element',
237 'html_type' => 'text',
dfe1f88a 238 'html_attributes' => [
988689cc
TO
239 'size' => 4,
240 'maxlength' => 8,
dfe1f88a 241 ],
988689cc
TO
242 'default' => 0,
243 'add' => '4.7',
244 'title' => 'Mailer Cron Job Limit',
245 'is_domain' => 1,
246 'is_contact' => 0,
247 'description' => 'The maximum number of mailer delivery jobs executing simultaneously (0 = allow as many processes to execute as started by cron)',
248 'help_text' => NULL,
dfe1f88a
CW
249 ],
250 'mailThrottleTime' => [
988689cc
TO
251 'group_name' => 'Mailing Preferences',
252 'group' => 'mailing',
253 'name' => 'mailThrottleTime',
254 'type' => 'Integer',
255 'quick_form_type' => 'Element',
256 'html_type' => 'text',
dfe1f88a 257 'html_attributes' => [
988689cc
TO
258 'size' => 4,
259 'maxlength' => 8,
dfe1f88a 260 ],
988689cc
TO
261 'default' => 0,
262 'add' => '4.7',
263 'title' => 'Mailer Throttle Time',
264 'is_domain' => 1,
265 'is_contact' => 0,
266 'description' => 'The time to sleep in between each e-mail in micro seconds. Setting this above 0 allows you to control the rate at which e-mail messages are sent to the mail server, avoiding filling up the mail queue very quickly. Set to 0 to disable.',
267 'help_text' => NULL,
dfe1f88a
CW
268 ],
269 'verpSeparator' => [
988689cc
TO
270 'group_name' => 'Mailing Preferences',
271 'group' => 'mailing',
272 'name' => 'verpSeparator',
273 'type' => 'String',
274 'quick_form_type' => 'Element',
275 'html_type' => 'text',
dfe1f88a 276 'html_attributes' => [
988689cc
TO
277 'size' => 4,
278 'maxlength' => 32,
dfe1f88a 279 ],
988689cc
TO
280 'default' => '.',
281 'add' => '4.7',
282 'title' => 'VERP Separator',
283 'is_domain' => 1,
284 'is_contact' => 0,
285 'description' => 'Separator character used when CiviMail generates VERP (variable envelope return path) Mail-From addresses.',
286 'help_text' => NULL,
dfe1f88a
CW
287 ],
288 'write_activity_record' => [
007e3bdc
TO
289 'group_name' => 'Mailing Preferences',
290 'group' => 'mailing',
291 'name' => 'write_activity_record',
292 'type' => 'Boolean',
74f89a9f 293 'html_type' => 'checkbox',
294 'quick_form_type' => 'CheckBox',
007e3bdc
TO
295 'default' => '1',
296 'add' => '4.7',
74f89a9f 297 'title' => ts('Enable CiviMail to create activities on delivery'),
007e3bdc
TO
298 'is_domain' => 1,
299 'is_contact' => 0,
300 'description' => NULL,
301 'help_text' => NULL,
dfe1f88a
CW
302 ],
303 'simple_mail_limit' => [
eb523ccd 304 'group_name' => 'Mailing Preferences',
305 'group' => 'mailing',
306 'name' => 'simple_mail_limit',
307 'type' => 'Integer',
308 'quick_form_type' => 'Element',
309 'html_type' => 'text',
dfe1f88a 310 'html_attributes' => [
eb523ccd 311 'size' => 4,
312 'maxlength' => 8,
dfe1f88a 313 ],
eb523ccd 314 'default' => 50,
315 'title' => 'Simple mail limit',
316 'is_domain' => 1,
317 'is_contact' => 0,
318 'description' => 'The number of emails sendable via simple mail. Make sure you understand the implications for your spam reputation and legal requirements for bulk emails before editing. As there is some risk both to your spam reputation and the products if this is misused it is a hidden setting',
319 'help_text' => 'CiviCRM forces users sending more than this number of mails to use CiviMails. CiviMails have additional precautions: not sending to contacts who do not want bulk mail, adding domain name and opt out links. You should familiarise yourself with the law relevant to you on bulk mailings if changing this setting. For the US https://en.wikipedia.org/wiki/CAN-SPAM_Act_of_2003 is a good place to start.',
dfe1f88a
CW
320 ],
321 'auto_recipient_rebuild' => [
05752ee5 322 'group_name' => 'Mailing Preferences',
323 'group' => 'mailing',
324 'name' => 'auto_recipient_rebuild',
325 'type' => 'Boolean',
74f89a9f 326 'html_type' => 'checkbox',
327 'quick_form_type' => 'CheckBox',
05752ee5 328 'default' => '1',
74f89a9f 329 'title' => ts('Enable automatic CiviMail recipient count display'),
05752ee5 330 'is_domain' => 1,
331 'is_contact' => 0,
74f89a9f 332 'description' => ts('Enable this setting to rebuild recipient list automatically during composing mail. Disable will allow you to rebuild recipient manually.'),
333 'help_text' => ts('CiviMail automatically fetches recipient list and count whenever mailing groups are included or excluded while composing bulk mail. This phenomena may degrade performance for large sites, so disable this setting to build and fetch recipients for selected groups, manually.'),
dfe1f88a
CW
334 ],
335 'allow_mail_from_logged_in_contact' => [
beac1417
MW
336 'group_name' => 'Mailing Preferences',
337 'group' => 'mailing',
338 'name' => 'allow_mail_from_logged_in_contact',
339 'type' => 'Boolean',
340 'quick_form_type' => 'YesNo',
341 'default' => 1,
342 'title' => 'Allow mail from logged in contact',
343 'is_domain' => 1,
344 'is_contact' => 0,
345 'description' => 'Allow sending email from the logged in contact\'s email address',
346 'help_text' => 'CiviCRM allows you to send email from the domain from email addresses and the logged in contact id addresses by default. Disable this if you only want to allow the domain from addresses to be used.',
dfe1f88a
CW
347 ],
348];