Quote DEFAULT_FROM_EMAIL display name so contact mail sends.
Comma in "AI ML Operations, LLC" broke RFC 5322 From parsing and silently skipped notification emails. Closes #28.
This commit is contained in:
+2
-1
@@ -34,7 +34,8 @@ EMAIL_HOST_USER=replace-with-smtp-user
|
|||||||
EMAIL_HOST_PASSWORD=replace-with-smtp-password
|
EMAIL_HOST_PASSWORD=replace-with-smtp-password
|
||||||
EMAIL_PORT=2525
|
EMAIL_PORT=2525
|
||||||
EMAIL_USE_TLS=true
|
EMAIL_USE_TLS=true
|
||||||
# DEFAULT_FROM_EMAIL=AI ML Operations, LLC <info@aimloperations.com>
|
# Display name has a comma — must be quoted (RFC 5322)
|
||||||
|
# DEFAULT_FROM_EMAIL="AI ML Operations, LLC" <info@aimloperations.com>
|
||||||
PUBLIC_SITE_URL=https://aimloperations.com
|
PUBLIC_SITE_URL=https://aimloperations.com
|
||||||
|
|
||||||
# Stripe (live keys from https://dashboard.stripe.com/apikeys)
|
# Stripe (live keys from https://dashboard.stripe.com/apikeys)
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ EMAIL_PORT = int(env("EMAIL_PORT", "2525"))
|
|||||||
EMAIL_USE_TLS = env_bool("EMAIL_USE_TLS", True)
|
EMAIL_USE_TLS = env_bool("EMAIL_USE_TLS", True)
|
||||||
DEFAULT_FROM_EMAIL = env(
|
DEFAULT_FROM_EMAIL = env(
|
||||||
"DEFAULT_FROM_EMAIL",
|
"DEFAULT_FROM_EMAIL",
|
||||||
"AI ML Operations, LLC <info@aimloperations.com>",
|
'"AI ML Operations, LLC" <info@aimloperations.com>',
|
||||||
)
|
)
|
||||||
# Absolute site origin for email logo / footer links (no trailing slash).
|
# Absolute site origin for email logo / footer links (no trailing slash).
|
||||||
PUBLIC_SITE_URL = env("PUBLIC_SITE_URL", "https://aimloperations.com").rstrip("/")
|
PUBLIC_SITE_URL = env("PUBLIC_SITE_URL", "https://aimloperations.com").rstrip("/")
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ def send_pay_link_email(
|
|||||||
from_email = getattr(
|
from_email = getattr(
|
||||||
settings,
|
settings,
|
||||||
"DEFAULT_FROM_EMAIL",
|
"DEFAULT_FROM_EMAIL",
|
||||||
"AI ML Operations, LLC <info@aimloperations.com>",
|
'"AI ML Operations, LLC" <info@aimloperations.com>',
|
||||||
)
|
)
|
||||||
from public.email_branding import email_brand_context
|
from public.email_branding import email_brand_context
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ def send_emails(modeladmin, request, queryset):
|
|||||||
from_email = getattr(
|
from_email = getattr(
|
||||||
settings,
|
settings,
|
||||||
"DEFAULT_FROM_EMAIL",
|
"DEFAULT_FROM_EMAIL",
|
||||||
"AI ML Operations, LLC <info@aimloperations.com>",
|
'"AI ML Operations, LLC" <info@aimloperations.com>',
|
||||||
)
|
)
|
||||||
d = email_brand_context(title=email.subject, content=email.body)
|
d = email_brand_context(title=email.subject, content=email.body)
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ def send_contact_email(email, subject, message):
|
|||||||
from_email = getattr(
|
from_email = getattr(
|
||||||
settings,
|
settings,
|
||||||
"DEFAULT_FROM_EMAIL",
|
"DEFAULT_FROM_EMAIL",
|
||||||
"AI ML Operations, LLC <info@aimloperations.com>",
|
'"AI ML Operations, LLC" <info@aimloperations.com>',
|
||||||
)
|
)
|
||||||
to = "ryan@aimloperations.com"
|
to = "ryan@aimloperations.com"
|
||||||
d = email_brand_context(subject=subject, message=message, email=email)
|
d = email_brand_context(subject=subject, message=message, email=email)
|
||||||
|
|||||||
Reference in New Issue
Block a user