Hi
It works fine, i've been using it for ages.
The manual says :
bool mail (string to, string subject, string message [, string
additional_headers])
The newline thing is present in the [additional_headers] section so you can
set optional headers. The final optional headers then look like this :
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
X-Mailer: PHP/3.0.17
What error are you getting exactly ? Are you sure [mail function] section in
php.ini is setup correctly ?
Regards
Girish
----- Original Message -----
From: "Kyle Smith" <[EMAIL PROTECTED]>
To: "Girish Nath" <[EMAIL PROTECTED]>
Sent: Tuesday, September 18, 2001 1:30 AM
Subject: Re: [PHP] Quick mail function help.... please!!!
> i got that from the manual but im not sure that it actually works!
>
> the thing is, why is there a new line thing where it says reply to??
>
>
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
>
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666
>
>
> ----- Original Message -----
> From: "Girish Nath" <[EMAIL PROTECTED]>
> To: "Kyle Smith" <[EMAIL PROTECTED]>
> Sent: Monday, September 17, 2001 9:28 AM
> Subject: Re: [PHP] Quick mail function help.... please!!!
>
>
> > Hi
> >
> >
> > mail("[EMAIL PROTECTED]", "My Subject", "My Message", "From:
> > [EMAIL PROTECTED]\nReply-To: [EMAIL PROTECTED]\nX-Mailer: PHP/" .
> > phpversion());
> >
> >
> > Is that what your after ?
> >
> > Regards
> >
> >
> > Girish
> >
> > ----- Original Message -----
> > From: "Kyle Smith" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 18, 2001 1:04 AM
> > Subject: Re: [PHP] Quick mail function help.... please!!!
> >
> >
> > > please someone please! ive been through the manual and i dont know
> > anywhere
> > > else to look so someone please gimme a kick in the right direction?
> > >
> > >
> > > -lk6-
> > > http://www.StupeedStudios.f2s.com
> > > Home of the burning lego man!
> > >
> > > ICQ: 115852509
> > > MSN: [EMAIL PROTECTED]
> > > AIM: legokiller666
> > >
> > >
> > > ----- Original Message -----
> > > From: "Kyle Smith" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, September 16, 2001 9:09 PM
> > > Subject: [PHP] Quick mail function help.... please!!!
> > >
> > >
> > > Can someone please show me how to change the reply address in the mail
> > > function (and the from address) cause i have a script im making for a
> > > mailing list and the script in the manual doesnt work cause it has
loads
> > of
> > > different code aswell :(
> > >
> > >
> > > -lk6-
> > > http://www.StupeedStudios.f2s.com
> > > Home of the burning lego man!
> > >
> > > ICQ: 115852509
> > > MSN: [EMAIL PROTECTED]
> > > AIM: legokiller666
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> >
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]