Backend for sending html mails