Skip to content

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.

License

Notifications You must be signed in to change notification settings

Wulfheart/laravel-mailto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel-Mailto

Latest Version on Packagist Total Downloads

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

Result

Contributing

You are welcome to contribute.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages