--- Eric Richards <[EMAIL PROTECTED]> wrote: > Hi all > Any mail from my web site form any visitor might send is sent from > [EMAIL PROTECTED] > How can I change this? > > <?php > $to = '[EMAIL PROTECTED]'; > $subject = 'the subject'; > $message = 'hello'; > $headers = 'From: [EMAIL PROTECTED]' . "\r\n" . > 'Reply-To: [EMAIL PROTECTED]' . "\r\n" . > 'X-Mailer: PHP/' . phpversion(); > > mail($to, $subject, $message, $headers); > ?> > > never worked, or should I say everything work OK except for the $headers > part > > I wonder what MUA stands for as in "The addition of basic headers, telling > the MUA the From and Reply-To addresses:" > > From Eric
The MUA is the Mail User Agent -- essentially the mail reader or client program such as Outlook, Eudora, etc. The MTA is the Mail Transport Agent -- the server such as SendMail, QMail, PostFix, Exim, or Exchange. Are you, by chance, using a Windows server to run your PHP? Linux/Unix servers with the MTAs available for those platforms seem to do a pretty good job with using the From: values supplied in PHP. The Windows ones often do not. It is one of the differences between running PHP on Windows or a Linux/Unix OS which can cause frustrations for developers. James Keeline
