Skip to content

EmailChannel.send_now fallback templates #21

@kevinrenskers

Description

@kevinrenskers

EmailChannel.send_now uses the following templates to send an email:

subject_template = f"notifications/email/realtime/{notification.notification_type}_subject.txt"
html_template = f"notifications/email/realtime/{notification.notification_type}.html"
text_template = f"notifications/email/realtime/{notification.notification_type}.txt"

It should fall back to "subject.txt", "message.html" and "message.txt" in case the notification type specific template(s) can't be found. The docs in customizing.md will need to be adjusted as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions