Update send_template: add send_at variable and test functions to it