Sign inSign up

trentis/smtp

By trentis

Updated about 5 years ago

Image
0

524

trentis/smtp repository overview

SMTP

Direktiv

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
}'

Input

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
}

Output

No output is provided on success.

Error

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

{
    "errorCode": "com.smtp.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

Size

2.9 MB

Last updated

about 5 years ago

docker pull trentis/smtp