You are here

function phpmailer_smtp_update_8001 in PHPMailer SMTP 2.0.x

Same name and namespace in other branches
  1. 8 phpmailer_smtp.install \phpmailer_smtp_update_8001()
  2. 2.x phpmailer_smtp.install \phpmailer_smtp_update_8001()
  3. 2.1.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);
}