Use with Shopware 6 | Mailcatcher Skip to content

Use with Shopware 6

Shopware 6

Make sure to check the upstream documentation on more details about the Shopware 6 Mailer.

Shopware gives you two options to configure an SMTP Server.

From Environment Variables

Shopware reads the MAILER_DSN environment variable, which is expected to contain

.env.local
MAILER_DNS=smtp://project.tenant:your-secure-password@mailcatcher.cloud:1026

Make sure to set the Mailer configuration to Use environment's configuration in the Administration in Settings > Mailer.

Shopware 6 Administration showing the Settings > Mailer page in the Use environment's configuration mode.

Administration Configuration

When you change the Mailer configuration to “in the Administration inSettings > Mailer, you can enter the SMTP credentials manually. Keep in mind that those will be stored unencrypted in the database.

Shopware 6 Administration showing the Settings > Mailer page in the SMTP Server mode.

Testing the configuration

The easiest way to test emails in Shopware 6 currently, is to open an email template - the Customer registration in this case. There you can click the paper plane icon to open the “Send test email” tab. In this tab you need to enter an email adress, select a Sales Channel and finally send the Email to Mailcatcher.

Shopware 6 Customer registration template with the Send test email tab open and a success message.

Now you can check if the email arrived in Mailcatcher, in case of an unmodified Customer Registration, it will look simmilar to this.

Shopware 6 default customer registration email in Mailcatcher.