Laravel-Mailto allows you to generate mailto-links with recipients, cc and bcc, subject and body. If an user clicks the link it opens the default mail editor prefilled with data. This comes in handy if you want your users to have the ability to send emails from their own client.
You can install the package via composer:
composer require wulfheart/laravel-mailto
// some blade file
<a href="{{
mailto("[email protected]")
->cc(["[email protected]", "[email protected]"])
->bcc("[email protected]")
->subject("Laravel")
->body("Hello Jeffrey,\n\nthis is a message.\n\nBest,\nAlex")
}}">
Send mail 📧
</a>
You are welcome to contribute.
The MIT License (MIT). Please see License File for more information.