Skip to content

Outgoing e-mail connector / trigger #5469

@kazagz

Description

@kazagz

What would you like to see!

While there is possibility to notify users via e-mail, I would like to see possibility to trigger e-mail based on alert payload. In our shop we're getting alert from many different sources and some of source specify contact persons / e-mails in alerts. What is required is to have the same functionality "Outgoing webhooks" have, but in this case they would trigger e-mail notifications.

Example

Alert payload:

{
    "message": "Something bad is happening",
    "mail": [
        "foo@example.com",
        "bar@example.com"
    ]
}

This would trigger "Outgoing e-mail" using Jinja2 templates - one for subject, message and recipients:

# Adding all templates here, but in reality these would
# be 3 inputs similar to how they are for existing e-mail notifications

# --- Title (subject) template ---
{{ payload.message }}

# --- Message template ---
Hello,
you should check this: {{ payload.message }}

# --- Recipients template, should accept comma separated list ---
{{ payload.mail | join(",") }}

The result would be mail sent to "foo@example.com,bar@example.com".

Product Area

Alert Flow & Configuration

Anything else to add?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions