You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried using SMTP settings as displayed in the docs, also tried using the payload/email-nodemailer plugin and also sendmailer-sendgrid plugin
But even with defaultfromaddress provided the email sent do not have from address and the emails get rejected immediately.
I have even tried mailgun but that didn't work too but i got the error below:
`
5.7.1 [159.135.228.5] Gmail has detected that this message is not RFC 5322 5.7.1 compliant: 5.7.1 'From' header is missing. 5.7.1 To reduce the amount of spam sent to Gmail, this message has been 5.7.1 blocked. For more information, go to 5.7.1 https://support.google.com/mail/?p=RfcMessageNonCompliant and review 5.7.1 RFC 5322 specifications. 3f1490d57ef6-e02e65ef0f5si2637960276.635 - gsmtp
`
Reproduction Steps
Done the setup according to the payload docs
Adapters and Plugins
sendmailer-sendgrid, email-nodemailer
The text was updated successfully, but these errors were encountered:
email: nodemailerAdapter({
// There is an issue with payload where FromName is being used for Name and Email
// and therefore having to resort to using email in FromName and From Address
defaultFromAddress:
process.env.EMAIL_FROM_NAME ,
defaultFromName:
process.env.EMAIL_FROM_ADDRESS,
transport: nodemailer.createTransport({
// @ts-ignore
host: process.env.SMTP_HOST,
port: process.env.SMTP_PORT,
// secure: true,
auth: {
user: process.env.SMTP_USER,
pass:
process.env.SMTP_PASS,
},
}),
}),
now as a work around I have set both name and email as email
email: nodemailerAdapter({
// There is an issue with payload where FromName is being used for Name and Email
// and therefore having to resort to using email in FromName and From Address
defaultFromAddress:
process.env.EMAIL_FROM_ADDRESS ,
defaultFromName:
process.env.EMAIL_FROM_ADDRESS,
transport: nodemailer.createTransport({
// @ts-ignore
host: process.env.SMTP_HOST,
port: process.env.SMTP_PORT,
// secure: true,
auth: {
user: process.env.SMTP_USER,
pass:
process.env.SMTP_PASS,
},
}),
}),
Link to reproduction
No response
Payload Version
v3 beta.45
Node Version
v20.15.01
Next.js Version
14.2
Describe the Bug
I have tried using SMTP settings as displayed in the docs, also tried using the payload/email-nodemailer plugin and also sendmailer-sendgrid plugin
But even with
defaultfromaddress
provided the email sent do not have from address and the emails get rejected immediately.I have even tried mailgun but that didn't work too but i got the error below:
`
Reproduction Steps
Done the setup according to the payload docs
Adapters and Plugins
sendmailer-sendgrid, email-nodemailer
The text was updated successfully, but these errors were encountered: