Closed signebedi closed 3 months ago
I think the format will need to change slightly, along the lines of:
on_create:
- type: send_mail
template: form_created
method: static
target: bob@hr.example.com
This will ensure we create a list of dicts.
ALSO: static target should split and trim on commas, so we can send to multiple people with one entry.
[bug] send mail event hook fails with multiple recipients In Python 2, you should be able to just use comma separated list represented as a string. https://stackoverflow.com/a/12422921. However, apparently this does not work in Python 3 and we need to use send_message instead, see https://docs.python.org/3/library/email.examples.html.
Originally posted by @signebedi in https://github.com/signebedi/libreforms-fastapi/issues/210#issuecomment-2211812137