The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
first verify Email send with register do not work
#3
(08-29-2018, 04:11 AM)weetax Wrote: Can you edit /users/helpers/helpers.php find the function "function email($to,$subject,$body,$opts=[],$attachment=false){"
and add this code 
Code:
$mail->SMTPOptions = array(
                           'ssl' => array(
                           'verify_peer' => false,
                           'verify_peer_name' => false,
                           'allow_self_signed' => true
                           )
                       );
 It's perfect for me. Have a good luck.

Thanks for your quick reply.

i have tryed it but it did not work
my code looks like this now:
Code:
function email($to,$subject,$body,$opts=[],$attachment=false){
/*you can now pass in
$opts = array(
 'email' => 'from_email@aol.com',
 'name'  => 'Bob Smith'
);
*/
    $db = DB::getInstance();
    $query = $db->query("SELECT * FROM email");
    $results = $query->first();

    $mail = new PHPMailer;
       $mail->SMTPOptions = array(
                          'ssl' => array(
                          'verify_peer' => false,
                          'verify_peer_name' => false,
                          'allow_self_signed' => true
                          )
                      );
    $mail->SMTPDebug = $results->debug_level;
and i get this on my homepage:
Quote:We were unable to verify your account. Please try again.
(and a button that says: Resend Verification Email)

is it maybe becouse i have https now?
  Reply


Messages In This Thread
RE: first verify Email send with register do not work - by SirAirHard - 08-29-2018, 04:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)