i found the problem thanks. even though the MX records were pointing to a different server, since there is an inactive mail server (qmail) installed on the server for local mail delivery it would route it to the local server.
i disabled the mail server on localhost completely and now all mail gets routed to the correct host according to the mx records on the DNS :) ----- Original Message ----- From: "Raditha Dissanayake" <[EMAIL PROTECTED]> To: "Gerard L Petersen" <[EMAIL PROTECTED]> Cc: "Php-General" <[EMAIL PROTECTED]> Sent: Wednesday, March 17, 2004 6:52 PM Subject: Re: [PHP] mail() to own domain not working > Gerard L Petersen wrote: > > >Hi all > > > >Im having a problem with sending mails using the mail function to my own > >domain. > >Mails to any other domain works perfectly. Also our mail server sitting on a > >different machine. > > > >Any ideas how to fix this? > > > > > If you are getting any php related error messages please post those > error messages to the list. If you are not getting any PHP errors please > look at your mail server log file for details on what's happening. It > could be purely a server configuration issue in which case you will have > to post the message to a mailing list/newsgroup related your mail server. > > > > > -- > Raditha Dissanayake. > --------------------------------------------------------------- > http://www.radinks.com/upload/ > Drag and Drop Upload thousands of files and folders in a single > transfer. (HTTP or FTP) > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php