Skip to content

Repository files navigation

@magic-modules/contact

a Contact Form for @magic also includes a server lambda that sends emails via smtp

demo

NPM versionLinux Build StatusWindows Build StatusCoverage StatusGreenkeeper badge

install:

npm install --save-exact @magic-modules/contact

usage:

import:
// assets/index.js:constContact=require('@magic-modules/contact')module.exports={//... other entries
Contact,}
config

configuration includes multiple files.

refer to the now.sh docs for more information

// /now.json{"env": ["SMTP_USER","SMTP_PASS"]}// /now-required.json{"SMTP_USER": "@smtp-user","SMTP_PASS": "@smtp-pass","SMTP_HOST": "smtp.gmail.com"}// /now-secrets.json// !add file to .gitignore{"@smtp-user": "your@gmail.com","@smtp-pass": "password"}
use tag
// in any component viewconstcomponent={View: ()=>Contact()}

About

@magic html component and contact server lambda that sends email via smtp.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages