Testing email html templates

What would be the kirby-way of testing html emails? I don’t want to send an email with every test :wink: Just check if every variable is loaded correctly in the template and somehow render the email.

is there a way to with $kirby->email([...]) to just rendering and outputting the template without sending the email?

Should be able to use mailhog to trap the email without sending it and see how it looks.

Thanks @jimbobrjames
Just found an easier solution: Put a

<?php exit; ?>

at the end of the email template it will be rendered in the browser.
Works fine for me.