hi everyone,
so my mail_url that used to work with ionos is like this:
smtps://test%40mydomain.de:somepassword@smtp.ionos.de:465
with it i could use Email.send from the meteor email package without problems. some weeks ago that changed. now i get this error:
Error: Mail command failed: 550-Requested action not taken: mailbox unavailable 550 Sender address is not allowed.
so i tried to use nodemailer directly:
const msgContent = {
//from: from.emails[0].address,
from: "test2@mydomain.de",
to: recipients.to.map(r => r.emails[0].address),
cc: recipients.cc.map(r => r.emails[0].address),
bcc: recipients.bcc.map(r => r.emails[0].address),
messageId: msg._id,
subject: msg.getSubject(i18n, recipients.to[0]),
text: msg.getBody(i18n, recipients.to[0])
};
const cfg = {
host: 'smtp.ionos.de',
port: 465,
secure: true,
auth: {
user: 'test@mydomain.de',
pass: 'somepassword'
}
};
const transporter = require("nodemailer").createTransport(cfg);
transporter.sendMail(msgContent, (err, inf) => {
...
});
and it just works. what could be the reason for this behaviour?