replyto
This commit is contained in:
@@ -6,7 +6,8 @@ export const config = {
|
||||
pass: process.env.SMTP_PASS || ''
|
||||
},
|
||||
email: {
|
||||
from: process.env.EMAIL_FROM || 'noreply@example.com'
|
||||
from: process.env.EMAIL_FROM || 'noreply@example.com',
|
||||
replyTo: process.env.EMAIL_REPLYTO || 'noreply@example.com',
|
||||
},
|
||||
redis: {
|
||||
url: process.env.REDIS_URL || 'redis://localhost:6379'
|
||||
|
||||
@@ -41,10 +41,11 @@ const worker = new Worker<EmailJob>(
|
||||
async (job) => {
|
||||
await transporter.sendMail({
|
||||
from: config.email.from,
|
||||
replyTo: config.email.replyTo,
|
||||
to: job.data.to,
|
||||
subject: job.data.subject,
|
||||
text: job.data.text,
|
||||
html: job.data.html
|
||||
html: job.data.html,
|
||||
})
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user