Mailer


If you choose the local e-mail agent, the server's default mailer (sendmail) is used for outgoing e-mails. The mailer is found under Settings > System > Mailer.

Please note that this article is only for users of a self-hosted store. This is not relevant for users of a Shopware 6 SaaS environment.

Local e-mail agent

If you choose the local e-mail agent, the server's default mailer (sendmail) is used for outgoing e-mails. In this case, make sure that the sendmail service is available in your host environment and has been set up correctly. You may need to check this with your hosting partner first.

Additionally, you can specify whether the mails should be sent synchronously (sendmail parameter -bs) or asynchronously (sendmail parameter -t). Which of these settings you can use depends on the server configuration. Your hoster can certainly give you more information about this.
If you have the possibility, we recommend that you use synchronous sending. With this option you can check the status of your mail and if an error occurs you will get a message. This is not possible with asynchronous sending. If you activate the Disable email delivery switch, you deactivate the mail dispatch completely.

Note that further snippets could be used in the store, which refer to the mail dispatch. For example, in the standard checkout, it is indicated that the order confirmation e-mail has been sent. 

SMTP-Server

alternatively to the local e-mail agent you can connect to an external mail provider.

Host (1):
Enter the host name of your provider here. The host name plays an important role in today's spam protection. Your customer's receiving server, for example, checks whether the host server and SMTP server refer to the same e-mail server and also whether they can be reached. If one of these criteria does not apply, your e-mails may already be defined as spam and blocked in advance.

Port (2):
The server port is specified here. Port 25 is usually used for SMTP transmission. However, if you use AOL or Gmail for sending, you have to enter the required port (e.g. 587).

Username/Password (3/4): 
You know your SMTP user name from setting up your email program. Enter your username or login name (this can also be your own email address - depending on your email provider) and your password.

Encryption method (5):
If your provider expects an SSL or TLS connection, select "ssl" or "tls" here. If prefer to send mail without encryption, this can be selected as an option.

Sender address (6):
Enter the e-mail address that is to act as the sender address.

If the e-mail address stored here is not displayed correctly during dispatch, please enter the e-mail address in the basic information for each sales channel.

With some providers, such as Office365, there may be problems sending mail if a different mail address is selected than in the master data.  So check in case of doubt if they match.

Delivery address (7):
The recipient address is used here for test purposes. A copy of all outgoing mails will be sent here as well.

Disable email delivery (8):
If you activate this switch, you deactivate the mail dispatch completely.

Note that further snippets could be used in the store, which refer to the mail dispatch. For example, in the standard checkout, it is indicated that the order confirmation e-mail has been sent. 

Connection data of well-known hoster's

1und1
Host:
smtp.ionos.de
Port: 
465
Username and password: 
Account e-mail address and password
Encryption method:
SSL
 

Google Mail
Host: 
smtp.gmail.com
Port: 
25
Username and Password: 
GMail e-mail address and password
Encryption method:
SSL
 

Hosteurope
Host: 
your SMTP-Server from Hosteurope
Port: 
25, 587 or 465
Username and password: 
SMTP account username and password
Encryption method:
unencrypted (port 25 or 587) or TLS encrypted (port 25) or SSL encrypted (port 465)
 

Timme Hosting
Host: 
your SMTP-Server from Timme
Port: 
465 or 587
Username and password: 
SMTP account username and password
Encryption method:
SSL or TLS
 

AIXPRO
Host:
Can be found in your welcome e-mail 
Port: 
587
Username and password: 
SMTP account username and password
Encryption method:
STARTTLS


Creoline

Host:
smtp.creoline.com
Port:
465 (SSL/TLS) or 587 (STARTTLS)
Username and password: 
Configuration via mailbox
Encryption method:
SSL/TLS or STARTTLS
Creoline also provides dedicated send connectors for sending transactional emails only. You can find out more about the send connectors here.

Use environment configuration

As a third option, you can also use the Symfony mailer function.

If you activate the Disable email delivery switch, you deactivate the mail dispatch completely. 

Note that further snippets could be used in the store, which refer to the mail dispatch. For example, in the standard checkout, it is indicated that the order confirmation e-mail has been sent. 

The connection data is entered in the .env file in the Shopware root directory. There you will find the line


MAILER_DSN=null://localhost

In these you enter the access data according to the following pattern


MAILER_DSN=smtp://username:password@mailserveraddress:port

(Please replace the parts written in cursive with your corresponding access data)

For more information on how to configure the symfony mailer, see the symfony documentation located here https://symfony.com/doc/current/mailer.html

Was this article helpful?