by drillster
The email plugin can be used to notify people of a build result.
Example
kind: pipeline
name: default
steps:
- name: notify
image: drillster/drone-email
settings:
host: smtp.some-server.com
username: foo
password: bar
from: drone@your-domain.com
Properties
from
stringoptionalThe email address to send the notification from.
Default: none
host
stringoptionalSMTP server host.
Default: none
port
numberoptionalSMTP server port.
Default: 587
username
stringoptionalSMTP server username.
Secret recommendedDefault: none
password
stringoptionalSMTP server password.
Secret recommendedDefault: none
skip_verify
booleanoptionalSkip cert verification.
Default: false
recipients
arrayoptionalList of recipients to send this mail to (besides the commit author).
Default: none
recipients_file
stringoptionalFile containing a list of recipients to send this mail to (besides the commit author).
Default: none
recipients_only
booleanoptionalDo not send mails to the commit author, but only to recipients.
Default: false
subject
stringoptionalThe subject line template (handlebars template).
Default: none
body
stringoptionalThe email body template (handlebars template). This can be an inline template, or a URL (file:/// allowed)
Default: none
attachment
stringoptionalAn optional file to attach to the sent mail(s). This can be an absolute path or a path relative to the working directory.
Default: none