You are here

function phpmailer_smtp_update_8002 in PHPMailer SMTP 2.1.x

Add Authentication type setting.

File

./phpmailer_smtp.install, line 61
PHPMailer SMTP installation functions.

Code

function phpmailer_smtp_update_8002() {
  \Drupal::configFactory()
    ->getEditable('phpmailer_smtp.settings')
    ->set('smtp_authentication_type', 'basic_auth')
    ->save(TRUE);
}