Skip to content

Add event before preparing an email to send out #2983

Answered by nfourtythree
modelesque asked this question in Ideas
Discussion options

You must be logged in to vote

Hi @modelesque

Thank you for your message.

There are a couple of things that you can do here to get things working for you.

Firstly, in terms of the sending to the recipients, if you are using Twig to render the output instead of having it fallback to '' you could set it to something like [email protected]. You could then be checking for this value in the "before send email" event to prevent sending.

When it comes to adding extra variables, the body of the email is rendered like a standard template so you are able to access template-related events. You could use the "before render template" event to add anything extra you need.

There are certainly improvements that we can look into, t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@modelesque
Comment options

Answer selected by modelesque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants