Skip to content

Removed setting email_from's email in order to be compatible with AWS…#741

Merged
rajat1saxena merged 1 commit intomainfrom
issue-740
Mar 14, 2026
Merged

Removed setting email_from's email in order to be compatible with AWS…#741
rajat1saxena merged 1 commit intomainfrom
issue-740

Conversation

@rajat1saxena
Copy link
Member

@rajat1saxena rajat1saxena commented Mar 14, 2026

In order to be compatible with AWS SES policies.

@rajat1saxena rajat1saxena self-assigned this Mar 14, 2026
@vercel
Copy link

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
courselit-docs Ready Ready Preview, Comment Mar 14, 2026 0:28am

Request Review

@rajat1saxena rajat1saxena merged commit 63dddcb into main Mar 14, 2026
7 checks passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 67c52a83af

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

: `${creator.email} <${creator.email}>`;
const from = getEmailFrom({
name: sequence.from?.name || creator.name || creator.email,
email: process.env.EMAIL_FROM || "",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Fail fast when EMAIL_FROM is unset in queue-generated mail

getEmailFrom is now called with email: process.env.EMAIL_FROM || "", so when EMAIL_FROM is not configured this builds a sender like <name> <>. I checked apps/queue/README.md and the commented queue block in deployment/docker/docker-compose.yml; neither currently requires/passes EMAIL_FROM, so deployments following those docs can enqueue sequence emails with an invalid From address and hit SMTP rejections at send time. Add a required-env check (or a safe fallback) before constructing the From header.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant