Form submissions fail with mail service configuration error in AEM as a Cloud Service RDE
Adobe Experience Manager as a Cloud Service (AEMaaCS) Rapid Development Environment (RDE) may fail during the email step of a form submission because RDE doesn’t support Advanced Networking required to connect to external SMTP servers. To resolve the issue, verify the mail configuration and test end-to-end email functionality in an environment that supports Advanced Networking.
Description description
Environment
- Adobe Experience Manager as a Cloud Service (AEMaaCS)
- Rapid Development Environment (RDE)
Issue/Symptoms
Form submissions fail during the email-sending step in RDE.
The submission reaches the backend, but the email operation fails with an Invalid mail service configuration error.
The issue occurs in RDE but doesn’t occur in Development, Stage, or Production environments where the same code and configuration work as expected.
Root cause
RDE environments don’t support Advanced Networking, which is required for AEM to connect to external services such as SMTP servers for email delivery. As a result, email operations fail in RDE regardless of the mail service configuration.
Resolution resolution
Follow the steps below to resolve the issue:
- Review the RDE platform limitations. RDE environments don’t support Advanced Networking and therefore can’t connect to external SMTP servers for email delivery.
- Verify that the mail service configuration, including the SMTP host, port, and From address, is correct even though the limitation occurs at the platform level.
- If necessary, compare the RDE mail service configuration with the configurations in working Development, Stage, or Production environments to rule out misconfiguration.
- Perform end-to-end email integration testing in an environment that supports Advanced Networking, such as Development, Stage, or Production. Don’t rely on RDE for email integration testing.
- If similar errors occur in supported environments, investigate the mail service configuration and network connectivity further because Advanced Networking should be available in those environments.
- Verify that form submissions and email delivery work as expected in an environment with Advanced Networking enabled.