theoomoregbee / US-visa-appointment-notifier

This is just a script I put together to check and notify me via email (MailGun) when there's an earlier date before my initial appointment date. It doesn't handle rescheduling.
MIT License
104 stars 57 forks source link

Authorized Recipients #5

Closed fameka1 closed 1 year ago

fameka1 commented 1 year ago

"status: 403, details: 'Domain sandboxe1164ceef2a340a89c348279b0dde46b.mailgun.org is not allowed to send: Sandbox subdomains are for test purposes only. Please add your own domain or add the address to authorized recipients in Account Settings.' "

I added the authorized recipient e-mail address and got it approved, but it still gave the same error.

shubhambodhe commented 1 year ago

Can you try with the same sender email address that you tried to create an account with the mailgun. I had this issue and it was resolved when I made that change.

theoomoregbee commented 1 year ago

or you can add a test email address in your mailgun sanbox dashboard - see https://help.mailgun.com/hc/en-us/articles/217531258-Authorized-Recipients

theoomoregbee commented 1 year ago

updated the readme FAQ with this issue

jasdeepece7 commented 1 year ago

@theoomoregbee Getting the below error while trying to run the script. Please check and suggest what is wrong and needs to be fixed to make it work:- =====>>> Step: sending an email to schedule for 02-01-2025 [Error: Unauthorized] { status: 401, details: 'Forbidden' }

I have update the .env file and below values i changed as per my mailgun account:- NOTIFY_EMAILS='XXXXXXXXXX' MAILGUN_USERNAME='XXXXXXXXXXX' MAILGUN_DOMAIN='sandboxdXXXXXXXXXXXXXXXXXXXX.mailgun.org' MAILGUN_API_KEY='pubkey-XXXXXXXXXXXXXX'

Also, please confirm that for the MAILGUN_USERNAME we need to add our email with which we signedup for mailgun and for MAILGUN_API_KEY we need to add pubkey value from our accounts API Keys section, as i didn't find any value starting only with key-xxxxxx

zehao-ba commented 8 months ago

Hello, i am having this error when i run 'npm start':

Error: Parameter "key" is required at new _ (/Users/xxx/Desktop/US-visa-appointment-notifier-main/node_modules/mailgun.js/mailgun.node.js:2:32862) at e.client (/Users/xxx/Desktop/US-visa-appointment-notifier-main/node_modules/mailgun.js/mailgun.node.js:2:58416) at Object. (/Users/xxx/Desktop/US-visa-appointment-notifier-main/utils.js:6:20) at Module._compile (node:internal/modules/cjs/loader:1376:14) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at Object. (/Users/xxx/Desktop/US-visa-appointment-notifier-main/index.js:5:37)

My env is setting as: NOTIFY_EMAILS='email@gmail.com' MAILGUN_USERNAME='email@gmail.com' MAILGUN_DOMAIN='sandboxaxxxx.mailgun.org' MAILGUN_API_KEY='pubkey-xxxx'