Gmail mailer: cURL error 60: SSL certificate problem
-
Hi,
I am trying to setup WP mail SMTP for my wordpress theme. I am using gmail SMTP service. I am running my application on a local server using Local. After making the SMTP setup I received the successful setup completion message : ‘You have successfully linked the current site with your Google API project. Now you can start sending emails through Gmail.’. However when I am trying to send a test email, I can see the ‘Send Email’ button as disabled showing following message: ‘You cannot send an email. Mailer is not properly configured. Please check your settings.’
Below is the message displayed at the top.
Heads up! The last email your site attempted to send was unsuccessful. Email Source: Mailer: Gmail cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
Also in the error event following message is displayed
Type Error Date January 24, 2022 at 4:56 pm Content Mailer: Gmail cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
I also tried to disable SSL verification using following script as per this github link https://gist.github.com/slaFFik/c1d7d4249f47da7195fb973109952090 but that also did not work.
add_filter('wp_mail_smtp_custom_options', function( $phpmailer ) { $phpmailer->SMTPOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) ); return $phpmailer; } );
Can anyone of you please look into this and help me resolve this issue? I have a client demo coming up in couple of days.
- The topic ‘Gmail mailer: cURL error 60: SSL certificate problem’ is closed to new replies.