The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with email setup in PHP 5.6
#1
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>
Code:
$mail->SMTPOptions = array(
    'ssl' => array(
        'verify_peer' => false,
        'verify_peer_name' => false,
        'allow_self_signed' => true
    )
);
</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.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)