@@ -21,7 +21,7 @@ function varbase_development_get_editable_config_names() {
],
'reroute_email.settings'=>[
'address'=>'dev-catchall@vardot.com',
'whitelist'=>'*@vardot.com',
'allowed'=>'*@vardot.com',
],
];
...
...
@@ -56,16 +56,18 @@ function varbase_development_build_formbit(array &$formbit, FormStateInterface &
'#type'=>'textfield',
'#title'=>t('Rerouting email addresses'),
'#default_value'=>'dev-catchall@vardot.com',
'#description'=>t('Provide a space, comma, or semicolon-delimited list of email addresses.<br/>Every destination email address which is not on "Whitelisted email addresses" list will be rerouted to these addresses.<br/>If the field is empty and no value is provided, all outgoing emails would be aborted and the email would be recorded in the recent log entries (if enabled).'),
'#element_validate'=>['validate_formbit_emails'],
'#description'=>t('Provide a comma-delimited list of email addresses. Every destination email address which is not fit with "Skip email rerouting for" lists will be rerouted to these addresses.<br/>If this field is empty and no value is provided, all outgoing emails would be aborted and the email would be recorded in the recent log entries (if enabled).'),
'#title'=>t('Skip email rerouting for email addresses:'),
'#default_value'=>'*@vardot.com',
'#description'=>('Provide a space, comma, or semicolon-delimited list of email addresses to pass through. <br/>Every destination email address which is not on this list will be rerouted.<br/>If the field is empty and no value is provided, all outgoing emails would be rerouted.<br/>We can use wildcard email "*@example.com" to whitelist all emails by the domain.'),
'#element_validate'=>['validate_formbit_emails'],
'#description'=>t('Provide a line-delimited list of email addresses to pass through. All emails to addresses from this list will not be rerouted.<br/>A patterns like "*@example.com" and "myname+*@example.com" can be used to add all emails by its domain or the pattern.'),