February 2, 2021
Sometimes you just want to send a simple email from within a Laravel controller or somewhere else, without having to create a whole "mailable" class.
In these cases, you can use the Mail::raw
method:
use Illuminate\Support\Facades\Mail;
Mail::raw('Hello there!', function ($message) {
$message->from('[email protected]', 'From Name');
$message->to('[email protected]');
$message->subject('You’ve got mail');
});
Tufts Meal Plan Wrapped
Mar 2, 2024
Building an e-ink picture frame that displays an iCloud photo album
Jan 9, 2024
2023 in review
Jan 5, 2024
Subscribe to my newsletter for a monthly round-up of new blog posts and projects I’m working on!