Skip to content

Commit

Permalink
feat: Update mail options to prevent ending up in spam (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
RudraPatel2003 authored Dec 26, 2024
1 parent 76bc18f commit 8fbe3a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/api/emails/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ export default async function sendEmail(
const email = process.env.SCF_GMAIL;

const mailOptions = {
from: `St. Christopher Truckers Relief Fund <${email}>`,
from: email,
to: recipient,
subject,
html,
text: html,
};

const response = await transporter.sendMail(mailOptions);
Expand Down

0 comments on commit 8fbe3a2

Please sign in to comment.