send to the reply-to address if it exists or the from address

This commit is contained in:
Hongbo Wu 2024-04-08 23:09:23 +08:00
parent 764b05fff4
commit dce0b15f4f

View file

@ -141,7 +141,7 @@ export const replyToEmailResolver = authorized<
}
const result = await sendEmail({
to: recentEmail.from,
to: recentEmail.replyTo || recentEmail.from, // send to the reply-to address if it exists or the from address
subject: 'Re: ' + recentEmail.subject,
text: 'Okay',
from: recentEmail.to,