Greetings all,

I have an isssue with the mail() function on PHP 4.2.2 and Red Hat 9.0. For some reason, which I have yet to figure out why, whenever I send an email using mail(), the /var/log/maillog file reports a "DSN=Data format error", and then bounces it to the root mailbox. The kicker is that when I use the GNOME desktop app Ximian Evolution, and setup my mail account to use the localhost SMTP server, it sends the email without a problem. Linux-based PHP will only let me use the local SMTP server when I use mail(), right? So I need this box's sendmail to work. Help me, please!

I've been adjusting the sendmail.mc file, and compiling it with "make -C /etc/mail". I've even removed all but the required settings in that file, and the result in the maillog file is always the same. I am not using ipchains. I have checked the system permissions for the 'apache' account because I can see that the apache account is the account attempting to use sendmail when I implement mail().

Oh, this one's a doosy. I hope that REDHAT did not make this distibution so that only thier bundled apps can use sendmail. But even so, couldn't that be tweaked!?

Thanks for all your help.

    I got the answer in the "coding" forum! By a guy by the name of "thefisherman". It can also be found when doing a search in the forums on keyword: "Data format error".

    Happy coding!!

      Write a Reply...