github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/announce/smtp.md (about)

     1  # SMTP
     2  
     3  For it to work, you'll need to set some environment variables on your pipeline:
     4  
     5  - `SMTP_PASSWORD`
     6  
     7  Then, you can add something like the following to your `.goreleaser.yaml` config:
     8  
     9  ```yaml
    10  # .goreleaser.yaml
    11  announce:
    12    smtp:
    13      # Whether its enabled or not.
    14      enabled: true
    15  
    16      # SMTP Host.
    17      #
    18      # Default: $SMTP_HOST
    19      host: "smtp.gmail.com"
    20  
    21      # SMTP Port
    22      #
    23      # Default: $SMTP_PORT
    24      port: 587
    25  
    26      # Sender of the email
    27      from: ""
    28  
    29      # Receivers of the email
    30      to:
    31        - ""
    32        - ""
    33  
    34      # Owner of the email
    35      #
    36      # Default: $SMTP_USERNAME
    37      username: ""
    38  
    39      # Body to use within the email.
    40      #
    41      # Default: 'You can view details from: {{ .ReleaseURL }}'
    42      # Templates: allowed
    43      body_template: 'https://github.com/goreleaser/goreleaser/releases/tag/{{ .Tag }}'
    44  
    45      # Subject template to use within the email subject.
    46      #
    47      # Default: '{{ .ProjectName }} {{ .Tag }} is out!'
    48      # Templates: allowed
    49      subject_template: ''GoReleaser {{ .Tag }} was just released!''
    50  ```
    51  
    52  !!! tip
    53      Learn more about the [name template engine](/customization/templates/).