This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

jacek.bartoszek12215
jacek.bartoszek12215

Hi All!

I have a problem with contact form and just send emails from site by SMTP. Problem occurs only in client server, because configuration SMTP i s correct. In client server is 5.6 PHP version. When i try send email by site i receives message: https://www.dropbox.com/s/nj97zlbpge9o98b/Zrzut%20ekranu%202015-11-24%2007.09.51_censored.jpg?dl=0

From the information that I found in others forum, i need set configuration like this:

   
$mail->SMTPOptions = array(
      'ssl' => array(
                'capath' => '/usr/lib/ssl/certs',
                'verify_peer' => true,
                'verify_peer_name' => true,
                'allow_self_signed' => false,
             )
);

So, please tell me where and how i set the option when i send email by Mail::send()?

Last updated

gorkovenkoserge
jacek.bartoszek12215
jacek.bartoszek12215

I fixed it by change in mail.php file in config folder. If you have this problem you need set variable 'encryption' to empty.

marco.messa
marco.messa

I know it's old, but I had a similar issue in production, and had some bad times. My solution was to add

'stream' => [
        'ssl' => [
            'allow_self_signed' => true,
            'verify_peer' => false,
            'verify_peer_name' => false,
        ],
    ],

in config/mail.php

Hope this will be useful to someone, cheers

ensis39807
ensis39807

@marco.messa332424 Your solution worked for me, thanks!

ElyVega
ElyVega

Faced the same trouble, thanks to @marco.messa, worked for me too

Last updated

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.