problem solved
there were two changes made to make it work on this dedicated godaddy server which uses qmail.
The first was my mistake, I forgot to turn off php safe mode.
The second change was in the in the WA_Globals where I added one line at the top:
<?php
putenv ("MAILUSER=noreply@mydomain.com");