简体   繁体   中英

cakephp email component phpmailer

I am using CakePHP 1.2 version and trying to send an email with PHPMailer library for my email function however while trying to send an email, it gets below mention error:

Fatal error: Class 'PHPMailer' not found in /var/www/xyz/app/controllers/components/email.php on line 80

Tried different ways to include vendor library into controller/app controller files, but it doesn't help much to resolve an error.

Any clues/ideas to resolve it ASAP.

Thanks !

Do you use

App::import('Vendor', 'PhpMailer', array('file' => 'phpmailer' . DS . 'class.phpmailer.php'));

?

Here is a tutorial for phpmailer and Cakephp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM