well..., some servers require ssl, other ssl and tunneling , and other require nothing. i have sendmail working but i am using a server that doesn't require ssl , can't configure anything other than that...
I took a look at your example, funny you use the settings on the form to configure the sendmail comand, i tought about using the same system.
Anyway, i can't use Gmail, hotmail, outlook, or even yahoo mail, they all use SSL and they all say: connection ended gracefully, but when i created a new account at a non ssl server like "portugalmail" , the server works perfercly, i suspect that this is due because i can't turn on ssl option with the "sendmail" command...
Another problem i am having is UTF=8, when i send an email with special characters, like: "Não" i receive on the other end "não" , but strange enough, if i attach the pdf file with my report (that also uses special chars) i receive the email perfectly.