Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

email-form-data

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-form-data

!! email-form-data: package has been rename **Serverless Forms**, [please use this new package located here](https://www.npmjs.com/package/serverless-form)

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Email form data

!! email-form-data: package has been rename Serverless Forms, please use this new package located here

Nodejs server to forward all POST submission by email. Inspired by the excellent formspree with the goal to be simpler to install and use. No database, 100% server (nodejs).

1 click deploy

Deploy in 1 click on heroku

Deploy in 1 click

Local install and use

1- type these 2 commands

$ npm install
$ EMAIL_USER="me@myemail.com" \
  EMAIL_PASS="abcd" \
  EMAIL_HOST="mail.gandi.net" \
  EMAIL_PORT=587 \
  TO="my.name@gmail.com" \
  npm start

2- Open http://localhost:8080 to see the HTML form which resides in form.html. Submit the form and it will send you an email with the content of the form.

3- You can customize the form, it will keep sending you all the field of the form by email.

Config

Here are all the environment variables you can use

Env vardescription
MESSAGEMessage to displayed after the form submission. May contain HTML. Default: 'Thank you for your submission.'
TOEmail address to send the form to (your email)
FROMEmail address to use as sender address
SITE_NAMEName of your site, will be displayed in the email title
PORTPort to listen to for form submissions
FORMPath to the HTML file containing the example form, defaults to ./form.html
EMAIL_HOSTSMTP config: see these options here
EMAIL_PORTSMTP config: see these options here
EMAIL_USERSMTP config: see these options here
EMAIL_PASSSMTP config: see these options here

FAQs

Package last updated on 11 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc