2021-09-27 22:43:00 -03:00
|
|
|
# SMTP
|
|
|
|
|
|
|
|
For it to work, you'll need to set some environment variables on your pipeline:
|
|
|
|
|
|
|
|
- `SMTP_PASSWORD`
|
|
|
|
|
2021-12-23 01:52:01 +01:00
|
|
|
Then, you can add something like the following to your `.goreleaser.yaml` config:
|
2021-09-27 22:43:00 -03:00
|
|
|
|
|
|
|
```yaml
|
2021-12-23 01:52:01 +01:00
|
|
|
# .goreleaser.yaml
|
2021-09-27 22:43:00 -03:00
|
|
|
announce:
|
|
|
|
smtp:
|
|
|
|
# Whether its enabled or not.
|
|
|
|
# Defaults to false.
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
# SMTP Host
|
|
|
|
host: "smtp.gmail.com"
|
|
|
|
|
|
|
|
# SMTP Port
|
|
|
|
port: 587
|
|
|
|
|
|
|
|
# Sender of the email
|
|
|
|
from: ""
|
|
|
|
|
|
|
|
# Receivers of the email
|
|
|
|
to:
|
|
|
|
- ""
|
|
|
|
- ""
|
|
|
|
|
|
|
|
# Owner of the email
|
|
|
|
username: ""
|
|
|
|
|
|
|
|
# Body template to use within the email.
|
2021-11-06 16:49:33 -03:00
|
|
|
# Defaults to `You can view details from: {{ .ReleaseURL }}`
|
2021-09-27 22:43:00 -03:00
|
|
|
body_template: 'https://github.com/goreleaser/goreleaser/releases/tag/{{ .Tag }}'
|
|
|
|
|
|
|
|
# Subject template to use within the email subject.
|
|
|
|
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out!`
|
|
|
|
subject_template: ''GoReleaser {{ .Tag }} was just released!''
|
|
|
|
```
|
|
|
|
|
|
|
|
!!! tip
|
|
|
|
Learn more about the [name template engine](/customization/templates/).
|