/ember-mail-to

Ember component to create HTML mailto links

Primary LanguageJavaScriptMIT LicenseMIT

ember-mail-to

Build Status npm Ember Observer Score

Ember component to create HTML mailto links.

Installation

ember install ember-mail-to

Usage

<MailTo
  @to='to@gmail.com'
  @cc={{array 'cc1@gmail.com' 'cc2@gmail.com'}}
  @bcc='bcc@gmail.com'
  @subject='Email Subject'
  @body='Email Body'
>
  Click here to send an email
</MailTo>

Creates the following element:

<a href="mailto:to@gmail.com?cc=cc1@gmail.com,cc2@gmail.com&amp;bcc=bcc@gmail.com&amp;subject=Email%20Subject&amp;body=Email%20Body">
  Click here to send an email
</a>

License

This project is licensed under the MIT License.