INFO: Version en.xModule type:

System settings - Mail server

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 via PHP scripts on the web server. If no data is entered, Weblication® CMS will fall back on 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!

System settings - Mail server (engineType="wSMTP2")
System settings - Mail server (engineType="wSMTP2")
System settings - Mail server (old)
System settings - Mail server (old)

Operation

'General SMTP server':

'SMTP host':

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).

'Connect via the host name instead of the IP address':

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.

'SMTP port':

In this field you can optionally enter an SMTP port (e.g. 25 or 465 or 587 for a secure connection).

'Security':

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).

'User name':

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!

'Password':

When using an authenticated SMTP host, enter a valid password for the previously entered user name (account) in this field.

'Timeout':

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.

'Check email domain when validating in forms':

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.

'Check e-mail domain when sending':

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.

'Save mails additionally on the server':

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 the directory at certain intervals. Please also observe the data protection regulations when saving personal data!

'Send test e-mail':

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 e-mail address of the SMTP user name is used as the sender. If no e-mail address is specified in this field, the'Sender address of system e-mails' stored in the system settings is set.


'SMTP server for newsletter, if different':

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.

'SMTP host':

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.

'Connect via the host name instead of the IP address':

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.

'SMTP port':

In this field you can optionally enter an SMTP port (e.g. 25 or 465 or 587 for a secure connection).

'Security':

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).

'User name':

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!

'Password':

When using an authenticated SMTP host, enter a valid password for the previously entered user name (account) in this field.

'Timeout':

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.

'Maximum number of emails per connection':

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).

'Delay after each email (in seconds)':

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).

'Delay before new connection (in seconds)':

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.

'Send test e-mail':

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.

Examples of mail server settings for various providers

With Domainfactory (DF for short), you can either manage without specifying an SMTP server or enter the following general SMTP server with SSL encryption, for example:

  • SMTP host
    sslout.de
  • Connect via the host name instead of the IP address
    This option must be activated for Domainfactory and the use of SSL.
  • SMTP port
    465
  • Security
    SSL
  • User name
    Enter the e-mail address of any mailbox here (e.g. info@meineDomain.tld)
  • Password
    Enter the password for the previously specified mailbox here.

For sending newsletters in particular, please refer to the developer article on optimizing newsletter dispatch via SMTP, especially with regard to the limits (maximum number of e-mails per connection, etc.).

With Hetzner, you can either do without specifying an SMTP server or enter the following general SMTP server with SSL encryption (no guarantee):

  • SMTP host
    tcp://mail.your-server.de
  • Connect via the host name instead of the IP address
    This option must be activated for Hetzner and the use of SSL.
  • SMTP port
    587
  • Security
    STARTTLS
  • User name
    Enter the e-mail address of any mailbox here (e.g. info@meineDomain.tld)
  • Password
    Enter the password for the previously specified mailbox here.

Especially for sending newsletters, please refer to the developer article on optimizing newsletter dispatch via SMTP, especially with regard to the limits (maximum number of e-mails per connection, etc.) and clarify this with the provider if necessary.

With Netbuild and servers or hosting packages managed with Plesk, where the mail server runs under the same IP address as the web server, you can work with PHP Sendmail.

  • SMTP host
    sendmail()
  • SMTP port
    25

All other details are not required as Sendmail is addressed directly on the server and communication therefore remains directly on the server (secure and shortest route).
Please note that the return path details for emails sent are always the same for the entire installation (e.g. can be adjusted in the PHP settings (see below)!
If this is not desired because there are also different senders for different forms, newsletters, etc., which are to be used as the return path, an SMTP server with a mailbox must be used!

For sending newsletters in particular, please refer to the developer article on optimizing newsletter dispatch via SMTP, especially with regard to the limits (maximum number of emails per connection, etc.) and clarify this with the provider if necessary.

E-mails could be sent successfully with this setting for e-mail addresses that run via a Microsoft Office 365 account (no guarantee):

  • SMTP host
    tcp://smtp.office365.com or tcp://smtp.office.de
  • Connect via the host name instead of the IP address
    This option must be activated.
  • SMTP port
    587
  • Security
    STARTTLS
  • User name
    Enter the e-mail address of an Office365 mailbox here (e.g. info@meineDomain.tld)
  • Password
    Enter the password for the previously specified mailbox here.

Especially for sending newsletters, please refer to the developer article on optimizing newsletter dispatch via SMTP, especially with regard to the limits (maximum number of e-mails per connection, etc.) and clarify this with the provider if necessary.

IONOS (formerly 1&1) has not officially confirmed the use of an SMTP server via PHP scripts. However, emails are usually sent successfully with this setting (no guarantee):

  • SMTP host
    ssl://smtp.ionos.de
  • Connect via the host name instead of the IP address
    This option must be activated.
  • SMTP port
    465
  • Security
    SSL
  • Username
    Enter the e-mail address of an IONOS mailbox here (e.g. info@meineDomain.tld)
  • Password
    Enter the password for the previously specified mailbox here.

Otherwise, leave the fields empty so that the PHP mail function is addressed for sending via Weblication®'s own mail functions. Only when using the Weblication® newsletter module is it necessary to specify an SMTP host (e.g. sendmail() or smtp.1und1.de) for sending.

For sending newsletters in particular, please refer to the developer article on optimizing newsletter dispatch via SMTP, especially with regard to the limits (maximum number of emails per connection, etc.) and clarify this with the provider if necessary.

If no SMTP server can be used, you can alternatively refer to the PHP sendmail function in the SMTP host field and enter this value:

sendmail()

Set the port to 25 and leave the user name and password blank.
This setting causes the wMailer functions to transfer e-mails to be sent to PHP Sendmail.
Please note that this setting may increase the risk of e-mails being recognized as spam or check the functionality of the mail dispatch at regular intervals. You should also ask the provider to communicate any changes to PHP Sendmail promptly so that they can react accordingly.