In the 'Mail server' tab of the system settings, various general settings can be made for sending emails that apply across all projects.
These settings are used, for example, when sending e-mails via Weblication® forms and the wMailer framework functions or for newsletters.
By default, Weblication® always sends emails via Weblication®'s own functions. From CMS version 12.x, use the new wSMTP2 mail engine, which is already set for new installations from around mid-2017. For existing installations, you may need to manually switch to engineType="wSMTP2" in the Weblication® configuration.
If an SMTP host is specified in the system settings, sending is not carried out directly, but is transferred to the set SMTP server.
Before filling in the fields, clarify with your provider what can be used for e-mail traffic on the web server. Some providers (e.g. 1und1 / IONOS) do not support the sending of emails via PHP with an SMTP server specified, which is why you should work without specifying "General SMTP server". If no data is entered, Weblication® CMS uses its own mail functions.
Settings for various providers:
Examples for various providers can be found further down on this page.
After making changes to the settings, firsttest the mail function using the "Send test e-mail" button! You should also check all e-mail forms and mail scripts for functionality.
When using an SMTP host with authentication,remember that changed mailbox data at the provider must also be adjusted in the system settings.
If different mail servers are required in an installation, e.g. for different projects, this can be defined manually via the respective framework function for the script (e.g. contact form) (see framework function wMailer::sendMailStr).
The most important aspects of this topic can be found in the developer article Sending emails via forms and scripts. Read this article carefully in order to be able to use and guarantee the best possible mail functions on your website!
In this field, you can optionally enter an SMTP host (e.g. smtp.domain.dd).
Most SMTP hosts only work via authentication, which is why a user name and password of an authenticated account must be entered in the following fields.
If no SMTP server is entered, emails sent via Weblication® functions are transferred to PHP Sendmail and sent. The use of PHP Sendmail can also be enforced by the following entry in the field: sendmail()
This alternative option to an SMTP server is available if other options cannot be used. It must then be ensured that Sendmail is functional under PHP. You should also bear in mind that when using PHP sendmail, the return-path specification always uses the same value globally from the PHP settings for the entire installation.
Please also note that this setting is not covered by Weblication® support.
You should also note that depending on the provider, the outdated encryption protocol TLSv1 (TLS 1.0 or TLS 1.1) is still used under PHP sendmail (e.g. under 32bit systems with Domainfactory).
If this parameter is activated, the specified SMTP host is addressed directly via the name and not via the IP address, which is resolved to the host name. This is necessary depending on the SMTP server used and should be checked on a case-by-case basis. It is best to use the"Send test e-mail" button for checking, which shows how and whether sending can take place.
This setting is only available if the wSMTP2 engine is activated.
In this field you can optionally enter an SMTP port (e.g. 25 or 465 or 587 for a secure connection).
In this field, you can optionally select the type of encryption if an SMTP host is used for secure connections ( e.g. SSL or STARTTLS).
In this field you enter a valid user name of an e-mail account when using an authenticated SMTP host.
This must be a valid account (usually Pop3 or IMAP). OWA accounts etc. are not supported!
When using an authenticated SMTP host, enter a valid password for the previously entered user name (account) in this field.
In this field, you can optionally enter a timeout in seconds. When sending emails, the duration of the connection to the mail server is limited to this time period.
If this parameter is activated, the entered email address is checked for a valid domain when validating a form field (type: email).
The PHP function checkdnsrr, which must be available on the server and correctly integrated, is used for the check.
If this parameter is activated, the system checks whether the sender and recipient email addresses use a valid domain when sending emails, e.g. from forms.
The PHP function checkdnsrr is used for the check, which must be available on the server and correctly integrated.
If this parameter is activated, the emails sent via wMailer are saved on the server in addition to being sent (storage location: /weblication/grid5/logs/mails). This setting is only possible if engineType="wSMTP2" is set and the SMTP server is stored (mail server name of the provider or e.g. sendmail() ).
In this way, it is possible to check which e-mails have been triggered for dispatch via Weblication®. This makes it easier to analyze if, for example, emails have not been received by the recipient.
If this setting is activated, you should clean up the directory at certain intervals. Please also observe the data protection regulations when saving personal data!
Click on this button to send a test e-mail to the e-mail address stored for the current user. The settings of the 'General SMTP server' are used for sending.
After a short time, a Weblication® message should appear with the following query:
"Now check whether you have received the test e-mail. Ihre@Mail-Adresse.tld".
After successful sending, a test e-mail with the subject"E-Mail Test" should have been sent to the e-mail address of the current user. The'Sender address of system e-mails' stored in the system settings is set as the sender.
In the following fields, you can specify a different SMTP server separately for sending newsletter emails. The newsletter must be sent via an SMTP server.
In this field you can optionally enter an SMTP host (e.g. smtp.domain.dd).
Most SMTP hosts only work via authentication, which is why a user name and password of an authenticated account must be entered in the following fields.
From CMS version 012.006.105.000, the use of PHP Sendmail can be enforced by making the following entry in the field: sendmail()
This alternative option to an SMTP server is available if other options cannot be used. It must then be ensured that Sendmail is functional under PHP. Please also note that this setting is not covered by Weblication® support.
If this parameter is activated, the specified SMTP host is addressed directly via the name and not via the IP address, which is resolved to the host name. This is necessary depending on the SMTP server used and should be checked on a case-by-case basis. It is best to use the"Send test e-mail" button for checking, which shows how and whether sending can take place.
This setting is only available if the wSMTP2 engine is activated.
In this field you can optionally enter an SMTP port (e.g. 25 or 465 or 587 for a secure connection).
In this field, you can optionally select the type of encryption if an SMTP host is used for secure connections ( e.g. SSL or STARTTLS).
In this field you enter a valid user name of an e-mail account when using an authenticated SMTP host.
This must be a valid account (usually Pop3 or IMAP). OWA accounts etc. are not supported!
When using an authenticated SMTP host, enter a valid password for the previously entered user name (account) in this field.
In this field, you can optionally enter a timeout in seconds. When sending emails, the duration of the connection to the mail server is limited to this time period.
In this field, you can optionally specify how many emails should be sent per connection to the SMTP server.
Ask the operator of the SMTP server for the limits to the mail server in order to find the optimum setting for sending newsletters (see also developer article).
In this field, you can optionally specify the delay in seconds after each email when sending newsletters (e.g. 0.5 for half a second or 2 for two seconds).
The setting also enables the use of mail servers with a corresponding limit (e.g. to 40 emails per minute).
In this field, you can optionally specify the delay before a new connection in seconds (e.g. 300 for 5 minutes).
The setting thus specifies how long to wait after the maximum number of emails to be sent (see setting above) have been processed or a timeout has been reached until the next sending is to be started.
Click on this button to send a test e-mail to the e-mail address stored for the current user. The settings of the 'General SMTP server' are used for sending.
After a short time, a Weblication® message should appear with the following query:
"Now check whether you have received the test e-mail. Ihre@Mail-Adresse.tld".
After successful dispatch, a test e-mail with the subject " E-mail test " should have been sent to the e-mail address of the current user. The ' Sender address of system e-mails ' stored in the system settings is set as the sender.