levacic/mailto

A generator for "mailto:" links

Installs: 6

Dependents: 0

Watchers: 1

Open Issues: 4

Language: PHP

1.0.1 2014-01-29 20:35 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.