01-26-2017, 06:41 AM
So I have set up userspice in a shared hosted server that runs with PHP 5.6.
I wasn't able to set up correctly email sending until I read this:
https://github.com/PHPMailer/PHPMailer/w...on-failure
So if you get an error "Could not connect to SMTP host" just go to \users\helpers\helpers.php around line 120 and add this code:
<pre></pre>
It worked for me because I didn't have a valid certificate, because php 5.6 needs it, I just had a self-signed one.
Mind you, this is bad practice and possibly a security hole.
I wasn't able to set up correctly email sending until I read this:
https://github.com/PHPMailer/PHPMailer/w...on-failure
So if you get an error "Could not connect to SMTP host" just go to \users\helpers\helpers.php around line 120 and add this code:
<pre>
Code:
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
It worked for me because I didn't have a valid certificate, because php 5.6 needs it, I just had a self-signed one.
Mind you, this is bad practice and possibly a security hole.