add connection to send_templated_email