levacic / mailto
A generator for "mailto:" links
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 4
pkg:composer/levacic/mailto
Requires
- php: >=5.3.0
- illuminate/support: 4.x
Requires (Dev)
- way/phpunit-wrappers: dev-master
This package is auto-updated.
Last update: 2025-09-08 00:37:50 UTC
README
This class allows easy creation of mailto:
links, and supports recipients within to:
, cc:
, and bcc:
fields, and setting the subject and body of an email.
Example
<?php $mailto = Levacic\Mailto\Generator::create() ->to('person@example.com') ->subject('Subject') ->body('Hi there!'); ?> <a href="<?php echo $mailto; ?>">Send email!</a>
License
The code is licensed under the MIT license, which is available in the LICENSE
file.