this is the @magic-modules Contact component. It sends email using any smtp server that allows username/password authentication.
npm install magic-modules/contact// /now.json{'env': ['SMTP_USER','SMTP_PASS']}// /now-required.json{'SMTP_USER': '@smtp-user','SMTP_PASS': '@smtp-pass','SMTP_HOST': 'smtp.mailserver.com'}// /now-secrets.json// !add file to .gitignore{'@smtp-user': 'your@mailserver.com','@smtp-pass': 'password'}
// process.cwd()/assets/index.jsconst Contact = require('@magic-modules/contact')module.exports = {Contact,//... other exports}
Contact(),