function system_post_update_mailer_structured_dsn_settings
Add new default mail transport dsn.
File
-
core/
modules/ system/ system.post_update.php, line 177
Code
function system_post_update_mailer_structured_dsn_settings() {
$config = \Drupal::configFactory()->getEditable('system.mail');
$config->set('mailer_dsn', [
'scheme' => 'sendmail',
'host' => 'default',
'user' => NULL,
'password' => NULL,
'port' => NULL,
'options' => [],
])
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.