Hello,
With my experience. if you are under linux, it's better to use send mail. After you can choose if you want to send the email in html in txt.
Now if you want to use Gmail, you must select Gmail in transmission. be careful on the port try 25 or 587.