Monthly Archives: April 2014

CakePHP: PHPMailer Component – Using GMail SMTP

Requirements: CakePHP 2.x PHPMailer Download PHPMailer & extract it to APP/vendors. Add following lines in APP/vendors/phpmailer/class.phpmail.php line 542, in ELSE statement. This to ensure we have a secured domain through SSL / TLS. Create a component called EmailComponent in APP/app/Controller/Component Create a controller, ExampleController.php to test out our EmailComponent When you navigate to http://localhost/APP/Example, the… Read More »