Fixed the "from" and "to" inputs of the SendMail function

Closes #3.