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
phpmailer problem
#1
1. I have been using the 'Test your email settings' option on v4.3.4 using a gmail account to send to another gmail account using a Siteground host.

When the 'use isSMPT' option is set to Yes, and email debugging has a value of 2, the email message is not sent and an SMPT error is shown on the browser display.

When the 'use isSMPT' option is set to No, the email message is successfully sent and received, and no debugging message is shown on the browser window. However, if view the site by ftp, a php_mail.log file is produced (about 456 bytes in size). For every email message successfully sent the php_mail.log continues to increase in size.

I have checked the https://github.com/PHPMailer/PHPMailer/w...leshooting site 'SMTP Error: Could not connect to SMTP host.' where they suggest - This is often reported as a PHPMailer problem, but it's almost always down to local DNS failure, firewall blocking (for example as GoDaddy does) or another issue on your local network. Not particularly helpful when the email message is successfully sent and received without an error showing on the browser window, but a php_mail.log file is steadily increasing in size.

I can suppress this error using error_reporting(E_ALL ^E_WARNING);
or I could delete the php_mail.log file automatically each time an email is successfully sent using the PHP unlink() function.

I am not sure if these are sensible solutions. I would rather fix a fault rather than suppress/delete the error message.

Does anyone else have this problem, and has anyone come up with a fix?



2. I also noticed that the 4.3.4 version of Userspice has two phpmailer installations, one in the classes folder called by class.autoloader in init.php and a second called by vendor/autoload.php in helpers.php

Can the phpmailer folder in classes be deleted without causing any problems?


Thanks
  Reply


Messages In This Thread
phpmailer problem - by Jeff - 11-22-2017, 06:30 PM
phpmailer problem - by mudmin - 11-23-2017, 02:28 PM
phpmailer problem - by Jeff - 11-23-2017, 06:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)