function phpmailer_smtp_update_8001 in PHPMailer SMTP 2.1.x
Same name and namespace in other branches
- 8 phpmailer_smtp.install \phpmailer_smtp_update_8001()
- 2.x phpmailer_smtp.install \phpmailer_smtp_update_8001()
- 2.0.x phpmailer_smtp.install \phpmailer_smtp_update_8001()
Add SMTP timeout setting.
File
- ./
phpmailer_smtp.install, line 52 - PHPMailer SMTP installation functions.
Code
function phpmailer_smtp_update_8001() {
\Drupal::configFactory()
->getEditable('phpmailer_smtp.settings')
->set('smtp_timeout', 30)
->save(TRUE);
}