New config option "check certificate" for SMTP server

Is it possible to add a check certificate or validate certificate option to the SMTP server configuration? Just like it is in the Active Directory settings.
Phpmailer should have the following options to set:

'ssl' => [
    'allow_self_signed' => true,
    'verify_peer' => false,
    'verify_peer_name' => false,
]

(post deleted by author)

I found working solution for that and submit PR#17486

  1. Add SMTPOptions into mailer send function
  2. Add settings definition for graphical (web) interface
  3. Add translations (en)