fix: use verified email for SES sandbox mode

This commit is contained in:
Kunthawat Greethong
2026-07-01 11:49:57 +07:00
parent 8aae25ef4f
commit 14aac31916

View File

@@ -96,8 +96,8 @@ app.post('/api/contact', async (req, res) => {
const displayEmail = String(email || '(ไม่ได้กรอก)');
await transporter.sendMail({
from: 'MoreminiMore <hello@moreminimore.com>',
to: 'hello@moreminimore.com',
from: 'MoreminiMore <kunthawat@moreminimore.com>',
to: 'kunthawat@moreminimore.com',
replyTo: email && email.includes('@') ? email : undefined,
subject: `Contact: ${name}${problems.length} ปัญหา`,
text: [