Update exemple
Enhance template engine, and accept function for mail options/templates