Allow click-through and open tracking to be enabled/disabled by default
[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,
8d2e8579 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 78 'help_text' => NULL,
dfe1f88a
CW
79 ],
80 'replyTo' => [
6098a966
TO
81 'group_name' => 'Mailing Preferences',
82 'group' => 'mailing',
83 'name' => 'replyTo',
84 'type' => 'Boolean',
85 'quick_form_type' => 'YesNo',
86 'default' => 0,
87 'add' => '4.6',
8d2e8579 88 'title' => ts('Enable Custom Reply-To'),
6098a966
TO
89 'is_domain' => 1,
90 'is_contact' => 0,
8d2e8579 91 'description' => ts('Allow CiviMail users to send mailings with a custom Reply-To header.'),
6098a966 92 'help_text' => NULL,
dfe1f88a
CW
93 ],
94 'mailing_backend' => [
6a488035
TO
95 'group_name' => 'Mailing Preferences',
96 'group' => 'mailing',
97 'name' => 'mailing_backend',
98 'type' => 'Array',
99 'html_type' => 'checkbox',
dfe1f88a 100 'default' => ['outBound_option' => '3'],
6a488035 101 'add' => '4.1',
8d2e8579 102 'title' => ts('Mailing Backend'),
6a488035
TO
103 'is_domain' => 1,
104 'is_contact' => 0,
08e57c58 105 'help_text' => NULL,
dfe1f88a
CW
106 ],
107 'profile_add_to_group_double_optin' => [
6a488035
TO
108 'group_name' => 'Mailing Preferences',
109 'group' => 'mailing',
110 'name' => 'profile_add_to_group_double_optin',
74f89a9f 111 'type' => 'Boolean',
6a488035 112 'html_type' => 'checkbox',
007e3bdc 113 'default' => '0',
6a488035 114 'add' => '4.1',
0dd00ae1 115 'title' => ts('Enable Double Opt-in for Profiles which use the "Add to Group" setting'),
6a488035
TO
116 'is_domain' => 1,
117 'is_contact' => 0,
0dd00ae1 118 '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 119 'help_text' => NULL,
dfe1f88a
CW
120 ],
121 'disable_mandatory_tokens_check' => [
9babb598
OB
122 'group_name' => 'Mailing Preferences',
123 'group' => 'mailing',
124 'name' => 'disable_mandatory_tokens_check',
74f89a9f 125 'type' => 'Boolean',
9babb598
OB
126 'html_type' => 'checkbox',
127 'default' => 0,
128 'add' => '4.4',
74f89a9f 129 'title' => ts('Disable check for mandatory tokens'),
9babb598
OB
130 'is_domain' => 1,
131 'is_contact' => 0,
74f89a9f 132 '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 133 'help_text' => NULL,
dfe1f88a
CW
134 ],
135 'dedupe_email_default' => [
9d76357a
DG
136 'group_name' => 'Mailing Preferences',
137 'group' => 'mailing',
138 'name' => 'dedupe_email_default',
74f89a9f 139 'type' => 'Boolean',
9d76357a
DG
140 'html_type' => 'checkbox',
141 'default' => 1,
142 'add' => '4.5',
74f89a9f 143 'title' => ts('CiviMail dedupes e-mail addresses by default'),
9d76357a
DG
144 'is_domain' => 1,
145 'is_contact' => 0,
74f89a9f 146 'description' => ts('Set the "dedupe e-mail" option when sending a new mailing to "true" by default.'),
08e57c58 147 'help_text' => NULL,
dfe1f88a
CW
148 ],
149 'hash_mailing_url' => [
c57f36a1
PJ
150 'group_name' => 'Mailing Preferences',
151 'group' => 'mailing',
152 'name' => 'hash_mailing_url',
74f89a9f 153 'type' => 'Boolean',
c57f36a1
PJ
154 'html_type' => 'checkbox',
155 'default' => 0,
156 'add' => '4.5',
74f89a9f 157 'title' => ts('Hashed Mailing URL\'s'),
c57f36a1
PJ
158 'is_domain' => 1,
159 'is_contact' => 0,
8d2e8579 160 '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 161 'help_text' => NULL,
dfe1f88a
CW
162 ],
163 'civimail_multiple_bulk_emails' => [
84fb7424
TO
164 'group_name' => 'Mailing Preferences',
165 'group' => 'mailing',
166 'name' => 'civimail_multiple_bulk_emails',
74f89a9f 167 'type' => 'Boolean',
84fb7424
TO
168 'html_type' => 'checkbox',
169 'default' => 0,
170 'add' => '4.5',
74f89a9f 171 'title' => ts('Enable multiple bulk email address for a contact.'),
84fb7424
TO
172 'is_domain' => 1,
173 'is_contact' => 0,
38056b36 174 '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 175 'help_text' => NULL,
dfe1f88a
CW
176 ],
177 'include_message_id' => [
89595c92
TO
178 'group_name' => 'Mailing Preferences',
179 'group' => 'mailing',
180 'name' => 'include_message_id',
74f89a9f 181 'type' => 'Boolean',
89595c92
TO
182 'html_type' => 'checkbox',
183 'default' => FALSE,
184 'add' => '4.5',
74f89a9f 185 'title' => ts('Enable CiviMail to generate Message-ID header'),
89595c92
TO
186 'is_domain' => 1,
187 'is_contact' => 0,
89595c92 188 'help_text' => NULL,
dfe1f88a
CW
189 ],
190 'mailerBatchLimit' => [
988689cc
TO
191 'group_name' => 'Mailing Preferences',
192 'group' => 'mailing',
193 'name' => 'mailerBatchLimit',
194 'type' => 'Integer',
195 'quick_form_type' => 'Element',
196 'html_type' => 'text',
dfe1f88a 197 'html_attributes' => [
988689cc
TO
198 'size' => 4,
199 'maxlength' => 8,
dfe1f88a 200 ],
988689cc
TO
201 'default' => 0,
202 'add' => '4.7',
8d2e8579 203 'title' => ts('Mailer Batch Limit'),
988689cc
TO
204 'is_domain' => 1,
205 'is_contact' => 0,
8d2e8579 206 'description' => ts('Throttle email delivery by setting the maximum number of emails sent during each CiviMail run (0 = unlimited).'),
988689cc 207 'help_text' => NULL,
dfe1f88a
CW
208 ],
209 'mailerJobSize' => [
988689cc
TO
210 'group_name' => 'Mailing Preferences',
211 'group' => 'mailing',
212 'name' => 'mailerJobSize',
213 'type' => 'Integer',
214 'quick_form_type' => 'Element',
215 'html_type' => 'text',
dfe1f88a 216 'html_attributes' => [
988689cc
TO
217 'size' => 4,
218 'maxlength' => 8,
dfe1f88a 219 ],
988689cc
TO
220 'default' => 0,
221 'add' => '4.7',
8d2e8579 222 'title' => ts('Mailer Job Size'),
988689cc
TO
223 'is_domain' => 1,
224 'is_contact' => 0,
8d2e8579 225 '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.'),
988689cc 226 'help_text' => NULL,
dfe1f88a
CW
227 ],
228 'mailerJobsMax' => [
988689cc
TO
229 'group_name' => 'Mailing Preferences',
230 'group' => 'mailing',
231 'name' => 'mailerJobsMax',
232 'type' => 'Integer',
233 'quick_form_type' => 'Element',
234 'html_type' => 'text',
dfe1f88a 235 'html_attributes' => [
988689cc
TO
236 'size' => 4,
237 'maxlength' => 8,
dfe1f88a 238 ],
988689cc
TO
239 'default' => 0,
240 'add' => '4.7',
8d2e8579 241 'title' => ts('Mailer Cron Job Limit'),
988689cc
TO
242 'is_domain' => 1,
243 'is_contact' => 0,
8d2e8579 244 'description' => ts('The maximum number of mailer delivery jobs executing simultaneously (0 = allow as many processes to execute as started by cron).'),
988689cc 245 'help_text' => NULL,
dfe1f88a
CW
246 ],
247 'mailThrottleTime' => [
988689cc
TO
248 'group_name' => 'Mailing Preferences',
249 'group' => 'mailing',
250 'name' => 'mailThrottleTime',
251 'type' => 'Integer',
252 'quick_form_type' => 'Element',
253 'html_type' => 'text',
dfe1f88a 254 'html_attributes' => [
988689cc
TO
255 'size' => 4,
256 'maxlength' => 8,
dfe1f88a 257 ],
988689cc
TO
258 'default' => 0,
259 'add' => '4.7',
8d2e8579 260 'title' => ts('Mailer Throttle Time'),
988689cc
TO
261 'is_domain' => 1,
262 'is_contact' => 0,
8d2e8579 263 '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.'),
988689cc 264 'help_text' => NULL,
dfe1f88a
CW
265 ],
266 'verpSeparator' => [
988689cc
TO
267 'group_name' => 'Mailing Preferences',
268 'group' => 'mailing',
269 'name' => 'verpSeparator',
270 'type' => 'String',
271 'quick_form_type' => 'Element',
272 'html_type' => 'text',
dfe1f88a 273 'html_attributes' => [
988689cc
TO
274 'size' => 4,
275 'maxlength' => 32,
dfe1f88a 276 ],
988689cc
TO
277 'default' => '.',
278 'add' => '4.7',
8d2e8579 279 'title' => ts('VERP Separator'),
988689cc
TO
280 'is_domain' => 1,
281 'is_contact' => 0,
8d2e8579 282 'description' => ts('Separator character used when CiviMail generates VERP (variable envelope return path) Mail-From addresses.'),
988689cc 283 'help_text' => NULL,
dfe1f88a
CW
284 ],
285 'write_activity_record' => [
007e3bdc
TO
286 'group_name' => 'Mailing Preferences',
287 'group' => 'mailing',
288 'name' => 'write_activity_record',
289 'type' => 'Boolean',
74f89a9f 290 'html_type' => 'checkbox',
291 'quick_form_type' => 'CheckBox',
007e3bdc
TO
292 'default' => '1',
293 'add' => '4.7',
74f89a9f 294 'title' => ts('Enable CiviMail to create activities on delivery'),
007e3bdc
TO
295 'is_domain' => 1,
296 'is_contact' => 0,
007e3bdc 297 'help_text' => NULL,
dfe1f88a
CW
298 ],
299 'simple_mail_limit' => [
eb523ccd 300 'group_name' => 'Mailing Preferences',
301 'group' => 'mailing',
302 'name' => 'simple_mail_limit',
303 'type' => 'Integer',
304 'quick_form_type' => 'Element',
305 'html_type' => 'text',
dfe1f88a 306 'html_attributes' => [
eb523ccd 307 'size' => 4,
308 'maxlength' => 8,
dfe1f88a 309 ],
eb523ccd 310 'default' => 50,
8d2e8579 311 'title' => ts('Simple mail limit'),
eb523ccd 312 'is_domain' => 1,
313 'is_contact' => 0,
8d2e8579 314 '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.'),
eb523ccd 315 '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
316 ],
317 'auto_recipient_rebuild' => [
05752ee5 318 'group_name' => 'Mailing Preferences',
319 'group' => 'mailing',
320 'name' => 'auto_recipient_rebuild',
321 'type' => 'Boolean',
74f89a9f 322 'html_type' => 'checkbox',
323 'quick_form_type' => 'CheckBox',
05752ee5 324 'default' => '1',
74f89a9f 325 'title' => ts('Enable automatic CiviMail recipient count display'),
05752ee5 326 'is_domain' => 1,
327 'is_contact' => 0,
74f89a9f 328 'description' => ts('Enable this setting to rebuild recipient list automatically during composing mail. Disable will allow you to rebuild recipient manually.'),
329 '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
330 ],
331 'allow_mail_from_logged_in_contact' => [
beac1417
MW
332 'group_name' => 'Mailing Preferences',
333 'group' => 'mailing',
334 'name' => 'allow_mail_from_logged_in_contact',
335 'type' => 'Boolean',
336 'quick_form_type' => 'YesNo',
337 'default' => 1,
8d2e8579 338 'title' => ts('Allow mail from logged in contact'),
beac1417
MW
339 'is_domain' => 1,
340 'is_contact' => 0,
8d2e8579 341 'description' => ts('Allow sending email from the logged in contact\'s email address.'),
beac1417 342 '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 343 ],
842d4bb7 344 'url_tracking_default' => [
345 'group_name' => 'Mailing Preferences',
346 'group' => 'mailing',
347 'name' => 'url_tracking_default',
348 'type' => 'Boolean',
349 'html_type' => 'checkbox',
350 'quick_form_type' => 'CheckBox',
351 'default' => '1',
352 'title' => ts('Enable click-through tracking by default'),
353 'is_domain' => 1,
354 'is_contact' => 0,
355 'description' => ts('If checked, mailings will have click-through tracking enabled by default.'),
356 'help_text' => NULL,
357 ],
358 'open_tracking_default' => [
359 'group_name' => 'Mailing Preferences',
360 'group' => 'mailing',
361 'name' => 'open_tracking_default',
362 'type' => 'Boolean',
363 'html_type' => 'checkbox',
364 'quick_form_type' => 'CheckBox',
365 'default' => '1',
366 'title' => ts('Enable open tracking by default'),
367 'is_domain' => 1,
368 'is_contact' => 0,
369 'description' => ts('If checked, mailings will have open tracking enabled by default.'),
370 'help_text' => NULL,
371 ],
dfe1f88a 372];