Hey Barbara,
Thanks for reaching out to us here.
I’m a bit uncertain about what exact changes you’re trying to make here, but I’ll throw out some ideas based on what you’ve written and hopefully we can go from there – for example, if what you’re trying to do is simple <b>replace</b> the code you posted with some code that displays the value of that meta field, then the following code should do:
echo sanitize_text_field( get_post_meta( $post->ID, '_ecp_custom_2', true ) );
If you’re trying to do something more complex with the email templates, let me know about it in more detail. We can only provide very limited support for customizations and custom code, but we might be able to at least offer some specific advice that will help you get started before taking the reins yourself.
One last thing worth sharing is our official Themer’s Guide – it has a lot of information about customizing templates like you’re aiming to do here → https://theeventscalendar.com/knowledgebase/themers-guide/
Cheers!
George