Raytha is a powerful CMS with an easy-to-use interface and fast performance. It offers custom content types, a template engine, and various access controls. It supports multiple storage providers and an automatically generated REST API. Upgrade your development workflow with Raytha.
If FROM is not null or empty in env variables, use that as the From name / From address. Otherwise fall back to the Reply To information specified in Configuration Settings. Add Reply To which always uses what is configured in the settings.
Reason for this feature is that you may have email domain authentication with a single domain that all sites should use no matter what, but want to let the client specify a reply-to email address. This is the case with Raytha's hosted platform where emails coming from the platform will be authenticated with a raytha domain to ensure deliverability, not marked as spam.
Add two more optional env settings in appsettings.json
SMTP_FROM_NAME
SMTP_FROM_ADDRESS
Default to empty string.
Update the Emailer Service to support both
from
andreply to
https://github.com/RaythaHQ/raytha/blob/5e8af6111fa4c385573c024710fb2bcb98772b35/src/Raytha.Infrastructure/Services/Emailer.cs#L51
If FROM is not null or empty in env variables, use that as the From name / From address. Otherwise fall back to the Reply To information specified in Configuration Settings. Add Reply To which always uses what is configured in the settings.
Reason for this feature is that you may have email domain authentication with a single domain that all sites should use no matter what, but want to let the client specify a reply-to email address. This is the case with Raytha's hosted platform where emails coming from the platform will be authenticated with a raytha domain to ensure deliverability, not marked as spam.