[FIX] When sending an email using a template, the system should use the outgoing mail server associated to the template