Connect mails and templates