1.1.1 • Published 5 years ago

static.email v1.1.1

Weekly downloads
8
License
ISC
Repository
-
Last release
5 years ago

StaticEmail

Build Status Coverage Status License: ISC

The easiest way to send emails to yourself, as described in this post.

Back End

Publish a static website via zeit now, use static.email.ses as serverless function and call it a day 🎉

Client Side

Either import StaticEmail from 'static.email' or put the script on top of your page.

<script src="https://unpkg.com/static.email"></script>
<script>
StaticEmail({
  // your zeit now SES enabled serverless function
  path: '/api/paperboy',

  // optional fields
  from: 'Some Body <some@body.me>',
  subject: 'Is it really that simple?',

  // allowed content
  html: '<strong>Great Service!</strong>',
  md: '# Great Service!',
  text: 'Great Service'
})
  .then(() => console.log('email sent 🎉'))
  .catch(console.error);
</script>
1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago

0.0.0

5 years ago