function smtp_update_8001 in SMTP Authentication Support 8
Add SMTP timeout configuration and change default to 30.
File
- ./
smtp.install, line 28 - The installation instructions for the SMTP Authentication Support.
Code
function smtp_update_8001() {
\Drupal::configFactory()
->getEditable('smtp.settings')
->set('smtp_timeout', 30)
->save(TRUE);
}