If you have access to a command line on the server, you can run
sendmail user@example.com < email.txt
where email.txt is a file with an email message.
I'd suggest installing Postfix, that solved all my problems. You can still use the sendmail command the same with Postfix.
Also make sure your php.ini defines the path correctly, it's usually /usr/sbin/sendmail