gmail-link
v1.0.0
Published
Create a mailto-style link that prefills a Gmail compose view
Downloads
54
Maintainers
Readme
gmail-link
Generate a Gmail compose link
Install
$ npm install --save gmail-link
Usage
var gmailLink = require('mailto-link')
gmailLink({to: 'bvdrucker@gmail', subject: 'Nice mailto lib'})
//=> https://mail.google.com/mail/?fs=1&su=Nice%20gmail%20lib&to=bvdrucker%40gmail.com&view=cm
API
gmailLink(options)
-> string
options
Required
Type: object
to / cc / bcc
Type: string
/ array[string]
List of emails to send to.
subject
Type: string
The email subject.
body
Type: string
The email body.
License
MIT © Ben Drucker