replace mail function call with swift mailer