Sign inSign up

vorteil/smtp-bare

By vorteil

Updated about 5 years ago

Image
0

1.3K

vorteil/smtp-bare repository overview

SMTP-bare

Send a message via SMTP.

Direktiv

An example workflow of using this container on Direktiv.

id: new-smtp-event
description: Send an email
functions:
- id: send
  image: vorteil/smtp-bare:v1
states:
- id: test-input
  type: action
  action:
    secrets: ["EMAIL_PW"]
    function: send
    input:
      tls: true
      to: 'jq(.smtp.to)'
      from: EMAIL_ADDDRESS
      subject: hello world
      password: jq(.secrets.EMAIL_PW)
      address: smtp.gmail.com
      port: 587
      attachments:
      - name: attach.zip
        data: jq(.data)
        type: base64
Input
  • tls: enable tls encryption
  • to: an array of email addresses to send a message
  • from: an email address that you want the message sent from
  • password: password required for the email address you are sending from.
  • subject: the subject header in the email
  • address: the address of the smtp server you want to use
  • port: the port of the smtp server
  • attachments
    • name: name of the attachment
    • data: the data of the attachment
    • type: 'base64' attachment or leave blank
Output

If successful no output will be returned when the message has been sent.

Error

In the case that an error is encountered it will present in the following format:

{
    "errorCode": "com.smtp-bare.%s.error",
    "errorMsg": "Something went wrong"
}

Replaces '%s' contextually with an error that happens during the runtime.

Tag summary

Content type

Image

Digest

Size

2.3 MB

Last updated

about 5 years ago

docker pull vorteil/smtp-bare