Sometimes we may need to send email from our website to the client with some attachment. In this tutorial we will query the MySQL database to get the updated data from our table and email the data to the desired email as PDF attachment.
For this we will use
- AngularJS [For front end]
- PHP [To query the database and send email]
- MySQL [The database]
- fPDF library [This will generate the PDF for us]
- SendGrid [This helps us sending the email in a better way]