davidturner / gulp-mailgun

My first ever gulp.js package, allowing users to send mails using Mailgun.
MIT License
7 stars 2 forks source link

Error: 425 #4

Open nikbelikov opened 3 years ago

nikbelikov commented 3 years ago

Hi! Please help me, I have an error:

Please make sure you have entered your Mailgun API Key in your gulpfile
[23:34:18] 'test' errored after 1.55 s
[23:34:18] Error in plugin 'gulp-mailgun'
Message:
    Error: Error: 425
Details:
    domainThrown: true

Process finished with exit code 1

gulpfile.js

const gulp = require('gulp');
const $ = require('gulp-load-plugins')();
...
const emailOptions = {
  key: 'key-...', // Private API key from https://app.mailgun.com/app/account/security/api_keys
  sender: '...@gmail.com',
  recipient: '...@gmail.com',
  subject: 'This is a test email'
};

const sendEmail = () => {
  gulp.src('dist/index.html')
    .pipe($.mailgun(emailOptions));
};

package.json

"dependencies": {
    "gulp": "4.0.2",
    "gulp-load-plugins": "2.0.6",
    "gulp-mailgun": "0.0.7",
  }
node -v && npm -v
v14.15.1
6.14.8
kapooostin commented 2 years ago

I got the same error today for the first time in a few years using this plugin. Could it be on Mailgun side? @nikbelikov did you manage to solve it?

nikbelikov commented 2 years ago

@kapooostin no, not really 😐

kapooostin commented 2 years ago

I switched to using mailgun.js directly