Welcome Guest, Not a member yet? Register   Sign In
Class "PHPMailer\PHPMailer\PHPMailer" not found
#3

I added this to my app/Config/Autoload.php:

PHP Code:
'PHPMailer\PHPMailer'  => ROOTPATH 'vendor/phpmailer/phpmailer/src' 

and it works! But I have one more question.
Why you used '\\' (double) in below code?

(08-31-2022, 07:12 AM)captain-sensible Wrote:
Code:
public $psr4 = [
APP_NAMESPACE => APPPATH, // For custom app namespace


'Config'      => APPPATH . 'Config',
'PHPMailer\\PHPMailer'=> ROOTPATH.'PHPMailer/src',
];
Reply


Messages In This Thread
RE: Class "PHPMailer\PHPMailer\PHPMailer" not found - by mazz - 08-31-2022, 07:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB