SolvedPHPMailer OpenSSL Error 14090086 certificate verify failed

Hi, I am getting the following log and error when trying to send an email via smtp. This occurs after the server gives the client a : 220 TLS go ahead.

Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [C:\Users\Mark\OneDrive\www\orm\00\02\mailer\class.smtp.php line 368]

I have the latest PHPMailer, use autoload, and based my PHP code directly on the smtp example here on GitHub.

Ho do I fix this?


33 Answers

✔️Accepted Answer

Synchro was right, i did read the Troubleshooting but didn't recognise the problem was described there. The solution is at

and involves adding

$mail->SMTPOptions = array(
    'ssl' => array(
        'verify_peer' => false,
        'verify_peer_name' => false,
        'allow_self_signed' => true

My website is hosted by hostpapa.


Related Issues:

PHPMailer OpenSSL Error 14090086 certificate verify failed
Synchro was right i did read the Troubleshooting but didn't recognise the problem was described ther...
shrine Shrine not regenerating location when using the copy plugin
In other words do you need the post.dup or the false) before copying the attachm...
nodemailer mails are not received by google or yahoo acounts
We had the same problem using v2.7.2 We solved the problem by adding the name option to smtpTranspor...
sendgrid nodejs Substitutions not working
Hi after reading @himanshupnt 's comment I tested with a legacy template and it worked Thanks @himan...
community edition MS Teams don't work
As a quick and dirty hack: edit the service open the “Advanced” section Seeing error when trying to ...
Mailspring Libsecret not installed (SNAP on KDE Neon)
$ sudo apt install gnome-keyring fixes this What operating system are you using? KDE Neon What versi...
sendgrid nodejs substitutions don't work in transactional templates
To everyone as desperate as me yesterday: in v3 API you need to use dynamic_template_data instead of...
sendgrid python SendGrid v3 with HTML - 400 Bad Request
Hi @thinkingserious I'm a new customer and I just want to express how disappointed I am the quality ...
alertmanager Two receivers
@pydolan There's one in the example config:
sendgrid python ImportError: cannot import name 'SendGridAPIClient'
Can you try renaming your file from to Issue Summary A summary of the issue ...
Mailu Allow specific users to send email from any address
Hi There The Mailu-Project is currently in a bit of a bind! We are short on man-power ...
Mailu ClamAV using all my disk space
Hi There The Mailu-Project is currently in a bit of a bind! We are short on man-power ...
sendgrid nodejs Client network socket disconnected before secure TLS connection was established
I figured out a solution to this The issue is that Lambda is closing / returning before the request ...
Mailspring ProtonMail Bridge IMAP integration
@bengotow The current problem is that mailsync attempts to create a top-level Mailspring folder whic...
sendgrid nodejs Sendgrid v3 Nodejs substitutions in templates not working
Sendgrid v3 requires to replace substitutions with dynamic_template_data something like this: ...
sendgrid nodejs How to utilize template versions for multiple language support
@thinkingserious mega +1 for this feature - We also need this feature for us the use-case is a bit d...
sendgrid nodejs Add nodemailer-sendgrid-transport to /packages
Nodemailer author here Issue Summary Please see issue sendgrid/nodemailer-sendgrid-transport#28 We w...
Mailspring [Feature Request] Add 'Hide menu bar' menu item
You can make this permanent by using a plugin : create a folder for the plugin : 'hide-menu-bar' cre...
sendgrid nodejs "Content with characters ', " or & may need to be escaped with three brackets" unnecesary warning
FWIW #932 adds a hideWarning flag that can be used to suppress this See
Mailu Access logfile for Fail2ban
For my environment I put the log to syslog so in env: LOG_DRIVER=journald For the jail I've set blac...
free email forwarding Emails from going to spam folder in Gmail
OK sorry for the confusion!!! Try again if you already have or haven't; I had to do just two more fi...
MailKit NTLM authentication not working in some cases
It's not in the list of SASL mechanisms that are tried by default but starting with 2.0 you can use ...
community edition Whatsapp Error (Needs Chrome 36+)
So here is a workaround using a custom service: Step 1 Create Custom service Step 2 Name: Whatever U...
sendgrid nodejs Easy to understand example
Hey @bcootner I have just experienced the same issue and been scratching my head for a few hours but...
sendgrid nodejs setApiKey is not a function
Sorry I just mis-imported the module : import sgMail from @sendgrid/mail works fine ...
Mailspring Notifications not working. MacOS Mojave
Hey folks Are there any related issues? I looked up read and tried every solution posted out there w...
Mailspring Ubuntu 17.10 GNOME DE: no ICON badge for unread mails
I use Ubuntu Mate 18.10 and got it working last week Are there any related issues? .. What operating...
Mailu Nginx Reverse Proxy error
here my structure and the front docker-compose # Core services front: image: ${DOCKER_ORG:-mailu}/${...
MimeKit TypeLoadException in version 2.0.3
Off topic but you once asked me which was more secure: OpenPGP vs S/MIME Well based on the Efail exp...
k 9 K9 not showing all emails in IMAP folder
I have the same problem as @OpenAai Expected behaviour It should show all messages in the folder ...
mailinabox Cannot install checksum error on fresh machine
It should just work if you start with step 10 My changes are in master. Hello ...
axios Axios catch error returns javascript error not server response
I have exactly the same environment Try this: Modify from console.log(error) to console.log(
scrapy ' error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 '
@euler16 for scrapy with Python 3 you'll need with Python 2 you'll need I wanted to install scrapy i...
laradock Mysql. The server requested authentication method unknown to the client [caching_sha2_password]
alter user 'username'@'localhost' identified with mysql_native_password by 'password'; would fix it....
react navigation screenIsActive prop / componentDidFocus event for TabNavigator items
It probably makes sense to add lifecycle hooks to screens In one of my Tabs i need to load Data from...
meteor [] Error: ENFILE: file table overflow
I was getting the same after an upgrade to macOS Sierra Turns out macOS have a harsh limit on number...
ipython Last jedi release (0.18.0) is incompatible with ipython (7.19 and 7.18 tested); reason - column arg was deprecated, and now removed
As a temporary fix for anyone just trying to get things working again: It would be really nice if yo...
material ui Module not found: Can't resolve 'material-ui-icons/Menu' Martial Next
For anyone else experiencing this issue: npm install @material-ui/icons
laravel dompdf (1/1) ErrorException Non-static method Barryvdh\DomPDF\PDF::loadView() should not be called statically
This happens because you are namespacing the wrong PDF class You are namespacing Barryvdh\DomPDF\PDF...
webpacker localIdentName option moved in css-loader configuration
I faced same issue after upading css-loader but I solved it If you check css-loader readme ...
react navigation Send data back from child screen?
@itswaze You can do something along these lines to pass back from the child screen ...
react navigation How to goBack from nested StackNavigator?
@dhruvparmar372 According to the NOTE in the doc a navigator's navigation prop may not have the help...
axios POST request works in Browser but not on Node
This might be considered a duplicate of #789 I was able to use the form-data package with Axios in n...
react navigation Best pattern for a 'Save' button in the header
Try setting your component instance's handleSave function as a navigation state parameter after the ...
DefinitelyTyped [@types/react] RefObject.current should no longer be readonly
It's not It'a intentionally left readonly to ensure correct usage even if it's not frozen ...
react native navigation [V3][Android] FATAL EXCEPTION: create_react_context
OK after a good night of sleep I've found why I was having this issue In the I ...
ts node Custom typings not working with ts-node 8.0.2
When using with ts-node you have to add --files flag After updating to ts-node version 8.0.2 the cus...
ohmyzsh compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew
Per #9602 (comment) brew cleanup fixed it for me I am using Apple M1 When I added this line: export ...
laradock SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
+1 I'm having the same problem here. Info: Docker version ($ docker --version): Docker version 17.12...