Browsed by
Tag: Email

Reset Your Password from API ?>

Reset Your Password from API

As you may know, Laravel provide a scaffold auth, which include reset/forgot password on web applications side. But what if you have a mobile application that need to reset password from the mobile application? In this post, I’ll show you how to reset user’s password from an API in Laravel. UPDATE 02/07/2017: In case you’re looking for App\Transformers\Json, you basically can create a class called Json in app/Transformers directory. In the Json class: Please make sure to composer dumpautoload -o…

Read More Read More

CakePHP: PHPMailer Component – Using GMail SMTP ?>

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 email should send to []. Please do check the mailbox. 🙂 References: