Release candidate
...
Administration
Setting up mail notifications

DSN

8min

Description

The DSN is a connection string that contains all the necessary connection parameters in a single expression. In Passwork, parameters are used for this purpose:

Setup

Edit the Passwork configuration file:

  • Linux — /var/www/init/config.env
  • Windows Server — C:\inetpub\wwwroot\passwork\init\config.env
  • Docker — /<passwork>/conf/keys/config.env

Basic DSN configuration example:

shell


Restart PHP:

DEB
RPM


Clear Passwork temporary cache:

DEB
RPM
Windows Server


Examples of DSN strings

Gmail with SSL (port 465):

shell


Gmail with TLS (port 587):

shell


Mailtrap with TLS:

shell


SMTP server without encryption:

shell


SMTP server with TLS encryption on port 587:

shell


SMTP server with SSL encryption on port 465:

shell




Updated 28 Mar 2025
Doc contributor
Did this page help you?