Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: changing default email sender #1582

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/emails/mail.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const sendEmail = async ({
try {
// send mail with defined transport object
await transporter.sendMail({
from: from || SMTP_FROM || `"Shelf" <no-reply@emails.shelf.nu>`, // sender address
...(replyTo && { replyTo }), // reply to
from: from || SMTP_FROM || `"Shelf" <updates@emails.shelf.nu>`, // sender address
replyTo: replyTo || "[email protected]", // reply to
to, // list of receivers
subject, // Subject line
text, // plain text body
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_layout+/account-details.general.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export async function action({ context, request }: ActionFunctionArgs) {
}

void sendEmail({
to: ADMIN_EMAIL || `"Shelf" <no-reply@emails.shelf.nu>`,
to: ADMIN_EMAIL || `"Shelf" <updates@emails.shelf.nu>`,
subject: "Delete account request",
text: `User with id ${userId} and email ${payload.email} has requested to delete their account. \n User: ${SERVER_URL}/admin-dashboard/${userId} \n\n Reason: ${reason}\n\n`,
});
Expand Down
Loading