Presentation with Singapore PHP User Group
Wednesday, February 8 at 7 PM - 9:30 PM
Size: 363.06 KB
Language: en
Added: Feb 04, 2017
Slides: 9 pages
Slide Content
LARAVEL MAILABLES
WITH MAILTRAP.IO
YEE SOON TUCK
ABOUT ME
ABOUT ME
▸Development Manager @ Aptsys Technology Solutions
▸Wrote my first “Hello World” in 1983
▸using BASIC
▸Discovered PHP in 2001
▸“web can talk to databases?? !!”
▸hooked up PHP with JDEdwards (MS SQL)
▸been having fun ever since
WEB APPS AND EMAIL
WHEN DO WE SEND EMAILS FROM APPS?
▸Sign-up / Welcome
▸Reset password
▸Confirmations / Acknowledgements
▸Newsletters
PHP AND EMAIL
HOW TO SEND EMAILS USING PHP?
▸bool mail ( string $to , string $subject , string $message [, string
$additional_headers [, string $additional_parameters ]] )
▸PHPMailer/PHPMailer
▸Laravel 5.3 Mailables
LARAVEL AND EMAIL
INTRODUCTION
▸Laravel provides a clean, simple API over the SwiftMailer library
▸Drivers
▸SMTP
▸Mailgun
▸SparkPost
▸Amazon SES
▸PHP mail
▸sendmail
LARAVEL MAILABLES CLASS
MAILABLES
▸In Laravel, each type of email is a “mailable” class
▸stored in app/Mail
MAILTRAP.IO
MAILTRAP.IO
LARAVEL MAILABLES WITH MAILTRAP.IO
DEMO - WELCOME EMAIL
▸sign-up at mailtrap.io
▸configure SMTP credentials
▸create a mailable class
▸view - email content
▸test route - send email
▸link to the Registration controller
▸queues
LARAVEL MAILABLES
WITH MAILTRAP.IO
YEE SOON TUCK
THANK YOU