Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Sending Mails Using Smtp - Ssl Options Rate Topic   - - - - -

 
  • Soneritics
  • Newbie
  • Members
  • Join Date: 19-Jan 17
  • 5 posts

Posted 27 October 2017 - 12:20 PM #1

Hi,

 

We are sending email using SMTP, but the mail server we are using has a self signed SSL certificate.

 

Currently, there is no option in the admin panel for this. In all the email programs I use there is :)

 

I would like to see this added. This can be a checkbox in the backend (Allow self signed certificate).

 

 

The code to make this work should be added to the PhpMailerTransport class, and should be:

$this->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);

 

This should be placed in the constructor, above the line:

} elseif ($method == 'sendmail') {



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11248 posts

Posted 27 October 2017 - 05:13 PM #2

Using servers with self-signed certificates is inherently insecure and should not be used by a commercial enterprise.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.