Send a message via SMTP.
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
If successful no output will be returned when the message has been sent.
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.
Content type
Image
Digest
Size
2.3 MB
Last updated
about 5 years ago
docker pull vorteil/smtp-bare