What is the Mailer.Sendmail returning? It seems to me that the script is working if it works on your domain, but for some reason it can't get the proper permission or setup to send to an external address.