I do the mailing service, I use nodemailer, I use aws as the provider.
Here is the code for the filer:
import nodemailer from "nodemailer"; import aws from "aws-sdk"; aws.config.update({ region: "us-west-2", accessKeyId: "accessKeyId", secretAccessKey: "secretAccessKey", }); const transporter = nodemailer.createTransport({ SES: new aws.SES({ apiVersion: "2010-12-01" }) }); const options = { from: "502isok@gmail.com", to: ["sakharov.a@ittest-team.ru"], subject: "Message", text: "I hope this message gets sent!", }; transporter.sendMail(options, (err, info) => { if (err) { console.error("error!"); console.error(err); return; } console.log("success!"); }); When executing this code, the error falls:
Email address is not verified. The following identities failed the check in region US-WEST-2: sakharov.a@ittest-team.ru Seriously? I have to verify the address of everyone to whom I send the letter?
In the AWS tutorial, there is information that you need to verify the sender's address. But nothing is said about the addressee.
What am I doing wrong?