Split the sendmail function to sendmail and sendmail_with_template.
Ability to send mail from admin panel.