NXP-15493 use configuration in mail template
NXP-15493 inject configuration in template
NXP-15493 use configuration to send mail