1. Is hotmail.com a SMTP server that will accept connections from random ip addresses?

2. You redirect with the HTTP headers, which need to be written before any HTML, so call the redirect first and don't bother printing the confimation message as they generally won't see it.