Merge pull request #19487 from civicrm/5.34
[civicrm-core.git] / settings / Mailing.setting.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 /*
18 * Settings metadata file
19 */
20
21 return [
22 'profile_double_optin' => [
23 'group_name' => 'Mailing Preferences',
24 'group' => 'mailing',
25 'name' => 'profile_double_optin',
26 'type' => 'Boolean',
27 'html_type' => 'checkbox',
28 'default' => '1',
29 'add' => '4.1',
30 'title' => ts('Enable Double Opt-in for Profile Group(s) field'),
31 'is_domain' => 1,
32 'is_contact' => 0,
33 '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.'),
34 'help_text' => NULL,
35 ],
36 'track_civimail_replies' => [
37 'group_name' => 'Mailing Preferences',
38 'group' => 'mailing',
39 'name' => 'track_civimail_replies',
40 'type' => 'Boolean',
41 'html_type' => 'checkbox',
42 'default' => '0',
43 'add' => '4.1',
44 'title' => ts('Track replies using VERP in Reply-To header'),
45 'is_domain' => 1,
46 'is_contact' => 0,
47 'description' => ts('If checked, mailings will default to tracking replies using VERP-ed Reply-To.'),
48 'help_text' => NULL,
49 'validate_callback' => 'CRM_Core_BAO_Setting::validateBoolSetting',
50 ],
51 'civimail_workflow' => [
52 'group_name' => 'Mailing Preferences',
53 'group' => 'mailing',
54 'name' => 'civimail_workflow',
55 'type' => 'Boolean',
56 'html_type' => 'checkbox',
57 'default' => '0',
58 'add' => '4.1',
59 'title' => ts('Enable workflow support for CiviMail'),
60 'is_domain' => 1,
61 'is_contact' => 0,
62 'description' => ts('Drupal-only. Rules module must be enabled (beta feature - use with caution).'),
63 'help_text' => NULL,
64 ],
65 'civimail_server_wide_lock' => [
66 'group_name' => 'Mailing Preferences',
67 'group' => 'mailing',
68 'name' => 'civimail_server_wide_lock',
69 'type' => 'Boolean',
70 'html_type' => 'checkbox',
71 'default' => '0',
72 'add' => '4.1',
73 'title' => ts('Enable global server wide lock for CiviMail'),
74 'is_domain' => 1,
75 'is_contact' => 0,
76 'help_text' => NULL,
77 ],
78 'replyTo' => [
79 'group_name' => 'Mailing Preferences',
80 'group' => 'mailing',
81 'name' => 'replyTo',
82 'type' => 'Boolean',
83 'quick_form_type' => 'YesNo',
84 'default' => 0,
85 'add' => '4.6',
86 'title' => ts('Enable Custom Reply-To'),
87 'is_domain' => 1,
88 'is_contact' => 0,
89 'description' => ts('Allow CiviMail users to send mailings with a custom Reply-To header.'),
90 'help_text' => NULL,
91 ],
92 'mailing_backend' => [
93 'group_name' => 'Mailing Preferences',
94 'group' => 'mailing',
95 'name' => 'mailing_backend',
96 'type' => 'Array',
97 'html_type' => 'checkbox',
98 'default' => ['outBound_option' => '3'],
99 'add' => '4.1',
100 'title' => ts('Mailing Backend'),
101 'is_domain' => 1,
102 'is_contact' => 0,
103 'help_text' => NULL,
104 ],
105 'profile_add_to_group_double_optin' => [
106 'group_name' => 'Mailing Preferences',
107 'group' => 'mailing',
108 'name' => 'profile_add_to_group_double_optin',
109 'type' => 'Boolean',
110 'html_type' => 'checkbox',
111 'default' => '0',
112 'add' => '4.1',
113 'title' => ts('Enable Double Opt-in for Profiles which use the "Add to Group" setting'),
114 'is_domain' => 1,
115 'is_contact' => 0,
116 '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.'),
117 'help_text' => NULL,
118 ],
119 'disable_mandatory_tokens_check' => [
120 'group_name' => 'Mailing Preferences',
121 'group' => 'mailing',
122 'name' => 'disable_mandatory_tokens_check',
123 'type' => 'Boolean',
124 'html_type' => 'checkbox',
125 'default' => 0,
126 'add' => '4.4',
127 'title' => ts('Disable check for mandatory tokens'),
128 'is_domain' => 1,
129 'is_contact' => 0,
130 '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.'),
131 'help_text' => NULL,
132 ],
133 'dedupe_email_default' => [
134 'group_name' => 'Mailing Preferences',
135 'group' => 'mailing',
136 'name' => 'dedupe_email_default',
137 'type' => 'Boolean',
138 'html_type' => 'checkbox',
139 'default' => 1,
140 'add' => '4.5',
141 'title' => ts('CiviMail dedupes e-mail addresses by default'),
142 'is_domain' => 1,
143 'is_contact' => 0,
144 'description' => ts('Set the "dedupe e-mail" option when sending a new mailing to "true" by default.'),
145 'help_text' => NULL,
146 ],
147 'hash_mailing_url' => [
148 'group_name' => 'Mailing Preferences',
149 'group' => 'mailing',
150 'name' => 'hash_mailing_url',
151 'type' => 'Boolean',
152 'html_type' => 'checkbox',
153 'default' => 0,
154 'add' => '4.5',
155 'title' => ts('Hashed Mailing URL\'s'),
156 'is_domain' => 1,
157 'is_contact' => 0,
158 '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.'),
159 'help_text' => NULL,
160 ],
161 'civimail_multiple_bulk_emails' => [
162 'group_name' => 'Mailing Preferences',
163 'group' => 'mailing',
164 'name' => 'civimail_multiple_bulk_emails',
165 'type' => 'Boolean',
166 'html_type' => 'checkbox',
167 'default' => 0,
168 'add' => '4.5',
169 'title' => ts('Enable multiple bulk email address for a contact.'),
170 'is_domain' => 1,
171 'is_contact' => 0,
172 '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.'),
173 'help_text' => NULL,
174 ],
175 'include_message_id' => [
176 'group_name' => 'Mailing Preferences',
177 'group' => 'mailing',
178 'name' => 'include_message_id',
179 'type' => 'Boolean',
180 'html_type' => 'checkbox',
181 'default' => FALSE,
182 'add' => '4.5',
183 'title' => ts('Enable CiviMail to generate Message-ID header'),
184 'is_domain' => 1,
185 'is_contact' => 0,
186 'help_text' => NULL,
187 ],
188 'mailerBatchLimit' => [
189 'group_name' => 'Mailing Preferences',
190 'group' => 'mailing',
191 'name' => 'mailerBatchLimit',
192 'type' => 'Integer',
193 'quick_form_type' => 'Element',
194 'html_type' => 'text',
195 'html_attributes' => [
196 'size' => 4,
197 'maxlength' => 8,
198 ],
199 'default' => 0,
200 'add' => '4.7',
201 'title' => ts('Mailer Batch Limit'),
202 'is_domain' => 1,
203 'is_contact' => 0,
204 'description' => ts('Throttle email delivery by setting the maximum number of emails sent during each CiviMail run (0 = unlimited).'),
205 'help_text' => NULL,
206 ],
207 'mailerJobSize' => [
208 'group_name' => 'Mailing Preferences',
209 'group' => 'mailing',
210 'name' => 'mailerJobSize',
211 'type' => 'Integer',
212 'quick_form_type' => 'Element',
213 'html_type' => 'text',
214 'html_attributes' => [
215 'size' => 4,
216 'maxlength' => 8,
217 ],
218 'default' => 0,
219 'add' => '4.7',
220 'title' => ts('Mailer Job Size'),
221 'is_domain' => 1,
222 'is_contact' => 0,
223 'description' => ts('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.'),
224 'help_text' => NULL,
225 ],
226 'mailerJobsMax' => [
227 'group_name' => 'Mailing Preferences',
228 'group' => 'mailing',
229 'name' => 'mailerJobsMax',
230 'type' => 'Integer',
231 'quick_form_type' => 'Element',
232 'html_type' => 'text',
233 'html_attributes' => [
234 'size' => 4,
235 'maxlength' => 8,
236 ],
237 'default' => 0,
238 'add' => '4.7',
239 'title' => ts('Mailer Cron Job Limit'),
240 'is_domain' => 1,
241 'is_contact' => 0,
242 'description' => ts('The maximum number of mailer delivery jobs executing simultaneously (0 = allow as many processes to execute as started by cron).'),
243 'help_text' => NULL,
244 ],
245 'mailThrottleTime' => [
246 'group_name' => 'Mailing Preferences',
247 'group' => 'mailing',
248 'name' => 'mailThrottleTime',
249 'type' => 'Integer',
250 'quick_form_type' => 'Element',
251 'html_type' => 'text',
252 'html_attributes' => [
253 'size' => 4,
254 'maxlength' => 8,
255 ],
256 'default' => 0,
257 'add' => '4.7',
258 'title' => ts('Mailer Throttle Time'),
259 'is_domain' => 1,
260 'is_contact' => 0,
261 'description' => ts('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.'),
262 'help_text' => NULL,
263 ],
264 'verpSeparator' => [
265 'group_name' => 'Mailing Preferences',
266 'group' => 'mailing',
267 'name' => 'verpSeparator',
268 'type' => 'String',
269 'quick_form_type' => 'Element',
270 'html_type' => 'text',
271 'html_attributes' => [
272 'size' => 4,
273 'maxlength' => 32,
274 ],
275 'default' => '.',
276 'add' => '4.7',
277 'title' => ts('VERP Separator'),
278 'is_domain' => 1,
279 'is_contact' => 0,
280 'description' => ts('Separator character used when CiviMail generates VERP (variable envelope return path) Mail-From addresses.'),
281 'help_text' => NULL,
282 ],
283 'write_activity_record' => [
284 'group_name' => 'Mailing Preferences',
285 'group' => 'mailing',
286 'name' => 'write_activity_record',
287 'type' => 'Boolean',
288 'html_type' => 'checkbox',
289 'quick_form_type' => 'CheckBox',
290 'default' => '1',
291 'add' => '4.7',
292 'title' => ts('Enable CiviMail to create activities on delivery'),
293 'is_domain' => 1,
294 'is_contact' => 0,
295 'help_text' => NULL,
296 ],
297 'simple_mail_limit' => [
298 'group_name' => 'Mailing Preferences',
299 'group' => 'mailing',
300 'name' => 'simple_mail_limit',
301 'type' => 'Integer',
302 'quick_form_type' => 'Element',
303 'html_type' => 'text',
304 'html_attributes' => [
305 'size' => 4,
306 'maxlength' => 8,
307 ],
308 'default' => 50,
309 'title' => ts('Simple mail limit'),
310 'is_domain' => 1,
311 'is_contact' => 0,
312 'description' => ts('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.'),
313 '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.',
314 ],
315 'auto_recipient_rebuild' => [
316 'group_name' => 'Mailing Preferences',
317 'group' => 'mailing',
318 'name' => 'auto_recipient_rebuild',
319 'type' => 'Boolean',
320 'html_type' => 'checkbox',
321 'quick_form_type' => 'CheckBox',
322 'default' => '1',
323 'title' => ts('Enable automatic CiviMail recipient count display'),
324 'is_domain' => 1,
325 'is_contact' => 0,
326 'description' => ts('Enable this setting to rebuild recipient list automatically during composing mail. Disable will allow you to rebuild recipient manually.'),
327 '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.'),
328 ],
329 'allow_mail_from_logged_in_contact' => [
330 'group_name' => 'Mailing Preferences',
331 'group' => 'mailing',
332 'name' => 'allow_mail_from_logged_in_contact',
333 'type' => 'Boolean',
334 'quick_form_type' => 'YesNo',
335 'default' => 1,
336 'title' => ts('Allow mail from logged in contact'),
337 'is_domain' => 1,
338 'is_contact' => 0,
339 'description' => ts('Allow sending email from the logged in contact\'s email address.'),
340 '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.',
341 ],
342 'url_tracking_default' => [
343 'group_name' => 'Mailing Preferences',
344 'group' => 'mailing',
345 'name' => 'url_tracking_default',
346 'type' => 'Boolean',
347 'html_type' => 'checkbox',
348 'quick_form_type' => 'CheckBox',
349 'default' => '1',
350 'title' => ts('Enable click-through tracking by default'),
351 'is_domain' => 1,
352 'is_contact' => 0,
353 'description' => ts('If checked, mailings will have click-through tracking enabled by default.'),
354 'help_text' => NULL,
355 ],
356 'open_tracking_default' => [
357 'group_name' => 'Mailing Preferences',
358 'group' => 'mailing',
359 'name' => 'open_tracking_default',
360 'type' => 'Boolean',
361 'html_type' => 'checkbox',
362 'quick_form_type' => 'CheckBox',
363 'default' => '1',
364 'title' => ts('Enable open tracking by default'),
365 'is_domain' => 1,
366 'is_contact' => 0,
367 'description' => ts('If checked, mailings will have open tracking enabled by default.'),
368 'help_text' => NULL,
369 ],
370 // dev/cor#1768 Allow mailer sync interval to be configured by the
371 // adminstrator.
372 'civimail_sync_interval' => [
373 'group_name' => 'Mailing Preferences',
374 'group' => 'mailing',
375 'name' => 'civimail_sync_interval',
376 'type' => 'Integer',
377 'quick_form_type' => 'Element',
378 'html_type' => 'text',
379 'html_attributes' => [
380 'size' => 4,
381 'maxlength' => 8,
382 ],
383 'default' => 10,
384 'title' => ts('Database Update Frequency'),
385 'add' => '5.28',
386 'is_domain' => 1,
387 'is_contact' => 0,
388 'description' => ts('The frequency that CiviMail updates its sent mail database.'),
389 'help_text' => NULL,
390 ],
391 ];