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

    stringoptional

    The email address to send the notification from.

    Default: none

  • host

    stringoptional

    SMTP server host.

    Default: none

  • port

    numberoptional

    SMTP server port.

    Default: 587

  • username

    stringoptional

    SMTP server username.

    Secret recommended

    Default: none

  • password

    stringoptional

    SMTP server password.

    Secret recommended

    Default: none

  • skip_verify

    booleanoptional

    Skip cert verification.

    Default: false

  • recipients

    arrayoptional

    List of recipients to send this mail to (besides the commit author).

    Default: none

  • recipients_file

    stringoptional

    File containing a list of recipients to send this mail to (besides the commit author).

    Default: none

  • recipients_only

    booleanoptional

    Do not send mails to the commit author, but only to recipients.

    Default: false

  • subject

    stringoptional

    The subject line template (handlebars template).

    Default: none

  • body

    stringoptional

    The email body template (handlebars template). This can be an inline template, or a URL (file:/// allowed)

    Default: none

  • attachment

    stringoptional

    An 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