Fixed bug where toMail was passed in at the wrong parameter for the send mail method signature.