wulfheart / laravel-mailto
laravel-mailto
v0.1.0
2021-02-06 22:41 UTC
Requires
- php: ^8.0
- illuminate/contracts: ^8.0
- spatie/laravel-package-tools: ^1.1
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
- vimeo/psalm: ^4.4
This package is auto-updated.
Last update: 2024-10-07 20:34:34 UTC
README
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.
Installation
You can install the package via composer:
composer require wulfheart/laravel-mailto
Usage
// some blade file <a href="{{ mailto("jeffrey@example.com") ->cc(["ryan@example.com", "taylor@example.com"]) ->bcc("freek@example.com") ->subject("Laravel") ->body("Hello Jeffrey,\n\nthis is a message.\n\nBest,\nAlex") }}"> Send mail 📧 </a>
Result
Contributing
You are welcome to contribute.
Credits
License
The MIT License (MIT). Please see License File for more information.