Skip to content

SMTPOptions for PHPMailer #11

Open
@ivanfilatov

Description

@ivanfilatov

Hi,
Recently I faced a problem that I need to set SMTPOptions property for PHPMailer for some specific reasons. In fact, this is rather rare case, but still. I need to set $mailer->SMTPOptions = $this->smtp_config['options']; and these options look like 'options' => ['ssl' => ['allow_self_signed' => true, 'verify_peer' => false, 'verify_peer_name' => false]].
I overrided the Component::reconfigureDriver() method and set my wrapper as the application component class, but I believe that this is worth adding to the plugin core code. I can make a pull request.
Best regards,
Ivan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions