Allow fall back to mail in template email

When stmp parameter is not set in system parameter, template email
component will fall back to use mail to send email.