sendemail.php STOPPED working after version 5.3 upgrade

1 reply · opened Sep 28, 2018

PpardthemonsterSep 28, 2018

Mail form stopped working following upgrade to 5.3

New sendemail.php file has code line 3 as:
require_once('phpmailer/PHPMailerAutoload.php');

However, no files in directory except in src folder as follows (PHPMailerAutoload.php does not exist):

include/phpmailer/src/
--SMTP.php
--POP3.php
--PHPMailer.php
--OAuth.php
--Exception.php

Also, error_log file in /include directory when using form states:

[28-Sep-2018 00:00:08 UTC] PHP Warning: require_once(phpmailer/PHPMailerAutoload.php): failed to open stream: No such file or directory in /DIRECTORIES REMOVED/include/sendemail.php on line 3
[28-Sep-2018 00:00:08 UTC] PHP Fatal error: require_once(): Failed opening required 'phpmailer/PHPMailerAutoload.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /DIRECTORIES REMOVED/include/sendemail.php on line 3

Again, there is no file instance of phpmailer/PHPMailerAutoload.php

Please advise.

SSemicolon WebSTAFFSep 28, 2018

Hello,

Apologies about the Inconveniences!

This is a mistake from our end for which we would like to Apologize to you profusely!

Please replace the following code in the include/sendemail.php File:

require_once('phpmailer/PHPMailerAutoload.php');

with the following code:

use PHPMailer\PHPMailer\PHPMailer;

require 'phpmailer/src/PHPMailer.php';
require 'phpmailer/src/SMTP.php';

This will definitely fix the issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard