New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

Nodejs server to forward all POST submission by email

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
1
Weekly downloads
 
Created
Source

email-form-data

Nodejs server to forward all POST submission by email

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

> email-form-data start
> node .

server listening on  8080

Then open localhost:8080 and you will 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.

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

Here are all the env vars you can use

  • PORT: port to listen to
  • FORM: path to the HTML file containing the form
  • MESSAGE: displayed after the form submission
  • EMAIL_HOST, EMAIL_PORT, EMAIL_USER, EMAIL_PASS: nodemailer config used to send emails, see these options here
  • TO: email address to send the form to
  • FROM: email address to use as sender address
  • SITE_NAME: name of your site, will be displayed in the email title

FAQs

Package last updated on 16 Oct 2017

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