:sourcedir: ../../../

= mail-template

This template provides a service to send mails from a pipeline with the help of a smtp server.
For more details: https://gitlab.exxcellent.de/gilden/ci/exxcellent-mail-tool[Gilde CI/CD: exxcellent-mail-tool].


.Variables
|===
|Name |Description | Default Value
|SMTP_PORT | the smtp port |25
|SMTP_AUTH | flag if smtp auth should be used |off
|===

NOTE: The template uses the port 25 config as a default which doesn't need a smtp auth and a smtp user with the restriction that it only works from within the exxcellent gitlab-ci runners. For other configs visit the https://gitlab.exxcellent.de/gilden/ci/exxcellent-mail-tool[mail-tool docs]

.mail-template
[source, yaml]
----
include::{sourcedir}/mail-template.gitlab-ci.yml[]
----