Email Type

AttachmentOptions

Attributes:

archive: str
Archive itself
filename: str
Name for the archive

TemplateOptions

Attributes:

name: str
Template name
You can create an e-mail template on TagoRUN options at https://admin.tago.io/run
params: Optional[dict[str, Union[int, float]]]
[Optional] Parameters to parse on Template
You can use that parameter as local variable using $PARAMETER_KEY$ example params = { name: ‘John’ } will be $name$ on template document

EmailBase

Attributes:

to: str
E-mail address to be sent
example: “myclien@tago.io
from_name: Optional[str]
[Optional] Name of origin
example: “My Run”
subject: str
Subject of the e-mail only allow with message or html
attachment: Optional[AttachmentOptions]
[Optional] Attachment for the e-mail

EmailRawText

Attributes:

message: str
Message in raw text for email body

EmailHTML

Attributes:

html: str
HTML email body

EmailWithTemplate

Attributes:

to: str
E-mail address to be sent
example: “myclien@tago.io
from_name: Optional[str]
[Optional] Name of origin
example: “My Run”
attachment: Optional[AttachmentOptions]
[Optional] Attachment for the e-mail
template: Optional[TemplateOptions]
[Optional] Use TagoRUN E-Mail Template
If you use template together with attachment the back-end will generate a parameter called ‘URL’

EmailWithHTML

EmailWithHTML: EmailBase or EmailHTML

EmailWithRawText

EmailWithRawText = EmailBase or EmailRawText