Hi, should i use the Email block to send email on ...
# ask-community
t
Hi, should i use the Email block to send email on task fail? Or should i write a function to send email on task fail hook? Thank you
b
If you use an email block, you could reference it in an automation to send an email when a flow run fails. For a task run failure, you could use a
on_failure
hook to send an email.
IIRC, you can't use the email notification block directly in code