No, you can't use sendmail or any other executable. You can only send mail via the PHP mail function (or an external service using its HTTP(S) API, like SendGrid).