Doing it like that should work if your SMTP server is configured correctly.
You might also try SendMail if none of this works for you.
I get the bold error message shown in the post above yours adding ssl:// to the sever address
The problem with using mail senders on the server itself is that it my cloud server
My server keeps getting flagged as sending spam when all it is doing is sending mail to the forum members that request notifications
I am getting tired of going to these web sites and fill out the forms saying that I am not a spammer
Here's a typical email reply from hotmail
Hotmail, MSN, Live, Yahoo and others all send back these types of messages
Reason: 550 SC-001 (BAY004-MC4F11) Unfortunately, messages from 22.214.171.124 weren't sent.
Please contact your Internet service provider since part of their network is on our block list.
You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors