Try to use the email module instead: https://appstore.home.mendix.com/link/app/259/Mendix/E-mail-module-with-templates