You are here

function smtp_post_update_set_smtp_keepalive in SMTP Authentication Support 8

Add SMTP keepalive configuration and set default to FALSE.

File

./smtp.post_update.php, line 27
Post update functions for Smtp.

Code

function smtp_post_update_set_smtp_keepalive() {
  \Drupal::configFactory()
    ->getEditable('smtp.settings')
    ->set('smtp_keepalive', FALSE)
    ->save(TRUE);
}