Email SMTP Adapter

AdapterConfigEmailSTMP

field

value

example

Host

required The host address for the email server

smtp.gmail.com

Port

required The port for the email server

587

TLS encrypt

optional Checkbox to either use TLS encryption for email sending or not

Authenticate

optional Checkbox to either use email authentication or not.

Auth username

optional but required if ^ is checked Username for user authentication that is attached to the email

mailbot@alphapack.co

Auth password

optional but required if ^ is checked Password for user authentication that is attached to the email

aaa

Service Request

column

value

example

System

required The system name of this adapter

EMAIL_SMTP

Service Name

required The name of the service, could be anything for this adapter, including N/A

SendMessage or N/A

Field Mappings

Field

Value

Value Type

example

subject

required The subject line of the email

str

f"Integration {integration_name} has failed on {date_time}"

from_address

required The address the email is coming from

str

mailbot@alphapack.co

to_addresses

required The address(es) that the email should be sent to

list

["test@email.com", "test2@email.com", "test3@email.com"]

body

required

str

attachments

optional List of attachments on the email as a list of dicts

name: intended file name

type: file MIME type

payload: file content (bytes) NOT A BYTE STREAM

list

[
{
    "name": "Test File",
    "type": "text/html",
    "payload": <_io.BytesIO object at 0x7g8j214f0h54>
}
]

Service Request and Field Mapping Examples

System

Service Name

Formula Variable

EMAIL_SMTP

SendMessage

send_email_smtp

Field Mappings Without Attachments:

Sequence

Field

Value

Value Type

1

subject

“This is a test subject”

str

2

from_address

“mailbot@alphapack.co”

str

3

to_addresses

['travis.w@sandboxbanking.com”, “developers@sandboxbanking.com”]

list

4

body

“This is a test body for the test email!”

str

Field Mappings With Attachments:

Sequence

Field

Value

Value Type

1

subject

“This is a test subject”

str

2

from_address

“mailbot@alphapack.co”

str

3

to_addresses

['travis.w@sandboxbanking.com”, “developers@sandboxbanking.com”]

list

4

body

“This is a test body for the test email!”

str

5

attachments

[{
    'name': 'Test Attachment',
    'type': 'text/plain',
    'payload': byte_stream.getvalue()
}]

list

Last updated