Tried multiple steps to solve problem with no success. I have tried to recompile php, no luck. Did up2date for sendmail, no luck. The mail() function is my only php function that is not working correctly, any ideas would be greatly appreciated!
If the mail() function exists and php isn't throwing an error, then the problem is with the exim setup. If a domain has been added to the server, in no case will mail be able to leave the server as long as the domain is in the /etc/virtual/domains file, *even if the MX records point elsewhere*. I've added a feature in 1.20.6 that allows users to remove their domain from that file by going to the the MX records screen and setting it to not use the local mailsystem.
Thanks for the replay John but I figured it out myself right before I got it =) It looks like when i changed the hostname from whatcanbehere.com to air.whatcanbehere.com something got screwy and when I got an error from a perl script as well, I figured it had to be sendmail. I changed it back to whatcanbehere.com and everything is working fine. Maybe it's a potential bug?