/email-to-phone-call

Primary LanguageJavaScriptMIT LicenseMIT

email-to-phone-call

This is EMAIL TO PHONE CALL via Twilio service, originally taken from https://github.com/mike1808/email-to-sms

It does not read email contents, it just makes a call, useful for nigh alerts.

Options

Use environments variables or .env file (see .env.example):

E2S_EMAIL_USER=<your email/username>
E2S_EMAIL_PASSWORD=<your email password>
E2S_EMAIL_HOST=<your IMAP server host>
E2S_EMAIL_PORT=<your IMAP server port>
E2S_EMAIL_TLS=<use TLS or not (can be 1 or empty)
E2S_EMAIL_FILTER_PATH=./exampleFilter.js <path to fitering function>
E2S_PHONE_NUMBER=<number to send SMS>
E2S_SMS_TRANSFORM=./exampleSms.js <path to text extraction for SMS from email>
E2S_TWILIO_ACCOUNT_SID=XXX - sid from Twilio
E2S_TWILIO_AUTH_TOKEN=XXX Oaoth token from Twilio
E2S_TWILIO_PHONE_NUMBER=37491000000 - Phone Number you have on Twilio
E2S_DEPLOY_DUMMY_HTTP= - set this to 'true' if you want to have a dummy http server for heorku or aws deploymeny
E2S_SELFURL=https://whatever.com/ - to call periodically, to prevent heroku idle shutdown

Usage

$ npm start