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?

Thanks

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

https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#php-56-certificate-verification-failure

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.

Regards

Related Issues:

11
PHPMailer OpenSSL Error 14090086 certificate verify failed
Synchro was right i did read the Troubleshooting but didn't recognise the problem was described ther...
4
shrine Shrine not regenerating location when using the copy plugin
In other words do you need the post.dup or the copy.save(validate: false) before copying the attachm...
106
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...
70
sendgrid nodejs Substitutions not working
Hi after reading @himanshupnt 's comment I tested with a legacy template and it worked Thanks @himan...
53
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 ...
35
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...
27
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...
23
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 ...
20
alertmanager Two receivers
@pydolan There's one in the example config: https://github.com/prometheus/alertmanager/blob/master/d...
19
sendgrid python ImportError: cannot import name 'SendGridAPIClient'
Can you try renaming your file from email.py to email_test.py? Issue Summary A summary of the issue ...
17
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 ...
15
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 ...
15
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 ...
14
Mailspring ProtonMail Bridge IMAP integration
@bengotow The current problem is that mailsync attempts to create a top-level Mailspring folder whic...
14
sendgrid nodejs Sendgrid v3 Nodejs substitutions in templates not working
Sendgrid v3 requires to replace substitutions with dynamic_template_data something like this: ...
14
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...
13
sendgrid nodejs Add nodemailer-sendgrid-transport to /packages
Nodemailer author here Issue Summary Please see issue sendgrid/nodemailer-sendgrid-transport#28 We w...
12
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...
11
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 https://github.com/sendgrid/...
8
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...
7
free email forwarding Emails from amazon.com 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...
7
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 ...
5
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...
5
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...
5
sendgrid nodejs setApiKey is not a function
Sorry I just mis-imported the module : import sgMail from @sendgrid/mail works fine ...
4
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...
4
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...
4
Mailu Nginx Reverse Proxy error
here my structure and the front docker-compose # Core services front: image: ${DOCKER_ORG:-mailu}/${...
3
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...
3
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 ...
3
mailinabox Cannot install checksum error on fresh machine
It should just work if you start with step 10 My changes are in master. Hello ...
3831
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(error.re...
731
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...
684
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....
517
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...
474
meteor [1.4.2.1] 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...
423
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...
397
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 https://www.npmjs.com/packag...
395
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...
378
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 ...
364
react navigation Send data back from child screen?
@itswaze You can do something along these lines to pass back from the child screen ...
358
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...
352
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...
317
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 ...
310
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 ...
306
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 MainApplication.java I ...
303
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...
294
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 ...
292
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...