You are here

function smtp_update_8002 in SMTP Authentication Support 8

Add SMTP keepalive configuration and set default to FALSE.

File

./smtp.install, line 37
The installation instructions for the SMTP Authentication Support.

Code

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