Open AdvithShetty opened 6 days ago
+1
bug desc:
its making from header like:
name <name>
instead of correctone:
name <email>
@AdvithShetty Thanks for the report. Can you provide your email config?
I was using this previously
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