What would the best way to send email and text notifications from within a controller be?
For example, a user does something and someone else is setup to receive an email/sms notification after it is completed. I'm using DOMPDF to generate PDFs with no issues and use Sendgrid & Twilio for sending out notifications. The thing is that the notifications require views to be loaded in order to create the html.
Should I create a library with a function for each notification?
Thanks all!