Enable emails in the CLI
You can change the email configuration for an active environment using the magento-cloud
CLI environment:info
command to set the enable_smtp
property. Enabling SMTP updates the MAGENTO_CLOUD_SMTP_HOST
environment variable with the IP address of the SMTP host for sending mail.
To manage email support from the command line:
-
On your local workstation, change to your project directory.
-
Check the outgoing email setting for the environment.
-
Change the email support configuration by setting the
enable_smtp
environment variable totrue
orfalse
.Wait for the environment to build and deploy.
-
Use an SSH to log into the remote environment.
-
Verify that the email works; send a test email to an address that you can check.
-
Verify that the email is picked up by SendGrid.
Adobe Commerce at Summit
Register for these sessions:
- Elevate and Empower Teams with Agentic AI for Exceptional Experiences (attend online)
- How AI Is Transforming the Commerce Landscape (attend online)
- B2B Reimagined: Transforming Go-to-Market Strategies for Profitable Growth (attend online)
- Put the Customer at the Center and Build Relationships That Last a Lifetime (attend online)
- Do it Best Leverages the Adobe Platform to Drive Growth for Independents
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more