I can use this command for sending an email, and it works
echo -e "To:pedromiguel-99@hotmail.com\\nSubject:OLA\\n\\nPQP" | sendmail -t