add phpmailer and smarty template engine