Administration
Setting up mail notifications
DSN
8 min
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 mailer dsn a configuration line in passwork that defines which way and through which provider to send mail it specifies the type of transport, api key or authorization data, and additional parameters app sender email specifies the email address that is used as the default notification sender in passwork 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 mailer dsn=smtp\ //username\@passwork com\ cdfe%20dynv%20pjxz%20odob\@smtp passwork com 465 app sender email=username\@passwork com description of parameters smtp\ // — protocol that is used to send emails username\@passwork com — login for connection (user name) cdfe%20dynv%20pjxz%20odob — password, spaces replaced by %20 (url encoding) smtp passwork com — the address of the server through which the e mails will be sent 465 — port, used for secure smtp connections (ssl) restart php deb systemctl restart php8 3 fpm service rpm systemctl restart php fpm service clear passwork temporary cache deb sudo u www data bash c 'cd /var/www && php d memory limit= 1 /bin/console cache\ clear' rpm sudo u apache bash c 'cd /var/www && php d memory limit= 1 /bin/console cache\ clear' windows server cd "c \inetpub\wwwroot\passwork" php d "memory limit= 1" \bin\console cache\ clear examples of dsn strings gmail with ssl (port 465) shell mailer dsn=smtp\ //username\@gmail com\ application password\@smtp gmail com 465 gmail with tls (port 587) shell mailer dsn=smtp\ //username\@gmail com\ application password\@smtp gmail com 587?encryption=tls mailtrap with tls shell mailer dsn=smtp\ //username\ password\@smtp mailtrap io 2525?encryption=tls smtp server without encryption shell mailer dsn=smtp\ //username\ password\@smtp server 25 smtp server with tls encryption on port 587 shell mailer dsn=smtp\ //username\ password\@smtp server 587?encryption=tls smtp server with ssl encryption on port 465 shell mailer dsn=smtp\ //username\ password\@smtp server 465