function smtp_post_update_set_smtp_timeout in SMTP Authentication Support 8
Add SMTP timeout configuration and change default to 30.
File
- ./
smtp.post_update.php, line 18 - Post update functions for Smtp.
Code
function smtp_post_update_set_smtp_timeout() {
\Drupal::configFactory()
->getEditable('smtp.settings')
->set('smtp_timeout', 30)
->save(TRUE);
}