renz45 / mandrill_mailer

A small gem for sending Mandrill template emails
260 stars 84 forks source link

Reject Error #144

Open sup-Udh opened 2 years ago

sup-Udh commented 2 years ago

The Error-

[
  {
    email: 'udhay1co.de@gmail.com',
    status: 'rejected',
    _id: 'eb31ad9effcf4c0084484496fe3eff2d',
    reject_reason: 'unsigned'
  }
]

the code-

const mailchimp = require("@mailchimp/mailchimp_transactional")(
    "HIDDEN API KEY",
  );
 export default function test(){

    const message = {
        from_email: "udhay1co.de@gmail.com",
        subject: "Hello world",
        text: "Welcome to Mailchimp Transactional!",
        to: [
          {
            email: "udhay1co.de@gmail.com",
            type: "to"
          }
        ]
      };

      async function run() {
        const response = await mailchimp.messages.send({
          message
        });
        console.log(response);
      }
      run();

 }

does anyone know why this happens?

Screenshot from 2022-01-31 15-27-07