Sign inSign up

westwind027/smtp-bare

By westwind027

•Updated almost 4 years ago

Image
0

428

westwind027/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: direktiv/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

sha256:e241ebc3a…

Size

2.3 MB

Last updated

almost 4 years ago

docker pull westwind027/smtp-bare