This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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
I fixed it by change in mail.php file in config folder. If you have this problem you need set variable 'encryption' to empty.
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
1-6 of 6