The function works, but one issue that has come up is if the "From" header does not match an email account, say, "foo@yourdomain.x10hosting.com', attached to your account, but instead is 'myhotmailaccount@hotmail.com', then the mail might work for awhile, but then stops.