HUB
Sign inSign up

projectnebula/email-sender-smtp

By projectnebula

•Updated over 6 years ago

The email sender smtp task sends an email using SMTP.

Image
0

1.6K

projectnebula/email-sender-smtp repository overview

⁠SMTP email sender

The SMTP email sender step container sends an email using SMTP.

⁠Specifications

SettingChild settingData typeDescriptionDefaultRequired
servermappingA map of server configuration values and credentials.NoneTrue
hoststringThe hostname of the SMTP server to connect to.NoneTrue
portintegerThe server's SMTP or SMTPS port.25False
usernamestringThe username to use when authenticating to the server. A username and password are required as this task does not support connecting to open relays.NoneTrue
passwordstringThe password to use when authenticating to the server.NoneTrue
tlsbooleanWhether to use TLS to connect to the server. If false, this task uses the STARTTLS extension instead. This task does not support unencrypted connections.true if port is 465, false otherwiseFalse
fromstringThe From header address to use, in an RFC 5322-compatible format, such as [email protected]⁠ or John Doe <[email protected]>.NoneTrue
tosequence of stringsA list of email addresses to send the email to, represented as a YAML sequence (sequence).NoneTrue
ccsequence of stringsA list of email addresses to carbon copy, represented as a YAML sequence.NoneFalse
bccsequence of stringsA list of email addresses to blind carbon copy, represented as a YAML sequence.NoneFalse
subjectstringThe subject line for the email.NoneFalse
bodymapping
textstringThe plain-text representation of the email body. At least one of body.text or body.html should be specified.NoneFalse
htmlstringThe HTML representation of the email body. At least one of body.text or body.html should be specified.NoneFalse
timeoutSecondsintegerThe amount of time to wait for a connection to the email server to be established.None (default TCP timeout)False

Note: The value you set for a secret must be a string. If you have multiple key-value pairs to pass into the secret, or your secret is the contents of a file, you must encode the values using base64 encoding, and use the encoded string as the secret value.

⁠Examples

Here is an example of the step in a Nebula workflow:

steps:

...
   
- name: email-sender-smtp
  image: projectnebula/email-sender-smtp:latest
  spec:
    server:
      host: smtp.example.com
      port: 465
      username: [email protected]
      password:
        $type: Secret
        name: email-password
      tls: true
    from: [email protected]
    to: 
      - "[email protected]"
      - "[email protected]"
    cc:
      - "[email protected]"
      - "[email protected]"
    bcc:
      - "[email protected]"
      - "[email protected]"
    subject: RE: Last night's episode of Lost.
    body:
      text: ZOMG! MIND BLOWN!
      html: |
        <!DOCTYPE html>
        <html>
          <body>
            <p>ZOMG! MIND BLOWN!</p>
          </body>
        </html>
    timeoutSeconds: 360
Tag summary
Recent tags
Content type
Image
Digest
Size
8.1 MB
Last updated
over 6 years ago
docker pull projectnebula/email-sender-smtp:latest