Contact form email fails: invalid From address with comma in display name #28

Closed
opened 2026-08-07 08:14:06 -07:00 by westfarn · 0 comments
Owner

Problem

Contact form submissions save to the leads page but do not send notification email to ryan@aimloperations.com.

Server log:

Error sending the email Invalid address; only AI ML Operations could be parsed from "AI ML Operations, LLC <info@aimloperations.com>"

Cause

DEFAULT_FROM_EMAIL uses an unquoted display name containing a comma (AI ML Operations, LLC). RFC 5322 treats the comma as an address-list separator, so the From header fails to parse.

Fix

Quote the display name:

"AI ML Operations, LLC" <info@aimloperations.com>

Update settings default, email send fallbacks, and .env examples. If production sets DEFAULT_FROM_EMAIL unquoted, update that env value too.

## Problem Contact form submissions save to the leads page but do not send notification email to `ryan@aimloperations.com`. Server log: ``` Error sending the email Invalid address; only AI ML Operations could be parsed from "AI ML Operations, LLC <info@aimloperations.com>" ``` ## Cause `DEFAULT_FROM_EMAIL` uses an unquoted display name containing a comma (`AI ML Operations, LLC`). RFC 5322 treats the comma as an address-list separator, so the From header fails to parse. ## Fix Quote the display name: ``` "AI ML Operations, LLC" <info@aimloperations.com> ``` Update settings default, email send fallbacks, and `.env` examples. If production sets `DEFAULT_FROM_EMAIL` unquoted, update that env value too.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/company_site#28