Skip to content

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

Notifications You must be signed in to change notification settings

magic-modules/contact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@magic-modules/contact

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

demo

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge

install:

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

usage:

import:
// assets/index.js:

const Contact = 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 view
const component = {
  View: () => Contact()
}

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published