function smtp_post_update_set_smtp_autotls in SMTP Authentication Support 8
Add SMTP Auto TLS configuration and set default to TRUE.
File
- ./
smtp.post_update.php, line 36 - Post update functions for Smtp.
Code
function smtp_post_update_set_smtp_autotls() {
\Drupal::configFactory()
->getEditable('smtp.settings')
->set('smtp_autotls', TRUE)
->save(TRUE);
}