Closed fameka1 closed 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.
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
updated the readme FAQ with this issue
@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
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.
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'
"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.