2
0

fix(integration): 🐛 From name behavior

This commit is contained in:
Baptiste Arnaud
2022-06-29 07:57:38 +02:00
parent edec5ba904
commit f4c81f2f07

View File

@ -105,7 +105,9 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
}
const transporter = createTransport(transportConfig)
const email: Mail.Options = {
from: `"${replyToName ?? from.name}" <${from.email}>`,
from: `"${isEmpty(replyToName) ? from.name : replyToName}" <${
from.email
}>`,
cc,
bcc,
to: recipients,