config template in config and send email in async