Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTPOptions for PHPMailer #11

Open
ivanfilatov opened this issue Mar 13, 2018 · 0 comments
Open

SMTPOptions for PHPMailer #11

ivanfilatov opened this issue Mar 13, 2018 · 0 comments

Comments

@ivanfilatov
Copy link

ivanfilatov commented Mar 13, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant