Phpmailer displays SMTP error

2

I am running the phpmailer codes and the following error message appears:

  

Fatal error: Class 'SMTP' not found in public_html / php / phpmailer / class.phpmailer.php on line 1291

Can anyone help me?

    
asked by anonymous 03.07.2015 / 02:00

2 answers

1

The path is wrong, look for the line with error, and delete the beginning that should be phpmailer/class.phpmailer.php , leave only class.phpmailer.php .

    
18.10.2016 / 14:38
-1

Hello,

The SMTP function is not being found in the patch of your php file:

  

public_html / php / phpmailer / class.phpmailer.php

I recommend that you parse line 1291 in the above file for more details about the code and possibly resolve the error, make sure your phpmailer is properly compiled.

    
20.06.2017 / 08:23