Option Authentication of mail delivery

Dear I have this code for sending mail
‘transport’ => [
‘class’ => ‘Swift_SmtpTransport’,
‘host’ => ‘mail.mydomain.com’,
‘username’ => ‘user’,
‘password’ => ‘password’,
‘port’ => ‘25’,
‘encryption’ => ‘t’,

how do i set the stmp authentication option