Laravel Community Tools by Tighten

Category "Mail" tricks

7 tricks
Send a reinitilisation code (6 digits) by email instead of a pratice link for mobile customers. In this case we are using fortify but working well with the laravel authentication system in general.
gabeta 4 years ago 14986
It's easy to notify one user by mail. But how to send a mail to all members of a Team? You can send one email to multiple recipients but it's not convenient, as it discloses recipient emails, which is not secure. Thus, you need to send bunch of personal emails on a loop. To do this create new TeamMailChannel and get MailChannel inside of it. Then iterate over users of a group and send emails. Your notification class should include TeamMailChannel inside via, however you should still use `toMail` method to prepare a message.
DavertMik 7 years ago 11196
5.6
Laravel 5.4 Upload Image with Validation example
dave 8 years ago 21422
Listen to the `Illuminate\Mail\Events\MessageSending` event, and perform logic when needed.
stevebauma... 9 years ago 8800
gmail sending using smtp in laravel
PunnaRao 10 years ago 6814
Change email configuration on the fly.
aglipanci 11 years ago 16041
4.2
When you need to pass some data to the Mail::send or Mail::queue, you need to make use of the "use" approach:
aglipanci 11 years ago 56037