An example workflow of using the container in a workflow on Direktiv.
id: send-email
functions:
- id: send
image: vorteil/smtp
description: "Initializes a smtp server to send an email"
states:
- id: SendEmail
type: action
action:
function: send
input: '{
"to" : "[email protected]",
"subject" : "SMTP Email",
"message" : "Hello, world!",
"from" : "[email protected]",
"password": "NOT4REALPW",
"server" : "smtp.example.com",
"port" : 587
}'
Sends an email via SMTP according to the input object:
{
"to" : "[email protected]",
"subject" : "SMTP Email",
"message" : "Hello, world!",
"from" : "[email protected]",
"password": "NOT4REALPW",
"server" : "smtp.example.com",
"port" : 587
}
No output is provided on success.
In the case that an error is encountered, it will present in the following format:
{
"errorCode": "com.smtp.error",
"errorMsg": "Something went wrong"
}
Content type
Image
Digest
Size
2.9 MB
Last updated
about 5 years ago
docker pull trentis/smtp