Re: Quick mail function help.... please!!!
| From: | Girish Nath | Date: | Mon, 17 Sep 2001 17:54:08 +0000 |
| Subject: | Re: Quick mail function help.... please!!! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67631@lists.php.net to get a copy of this message | ||
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: sender@domain.com
Reply-To: replyto@domain.com
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" <dbzno1fan@hotmail.com>
To: "Girish Nath" <girishn@btinternet.com>
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: dbzno1fan@hotmail.com
> AIM: legokiller666
>
>
> ----- Original Message -----
> From: "Girish Nath" <girishn@btinternet.com>
> To: "Kyle Smith" <dbzno1fan@hotmail.com>
> Sent: Monday, September 17, 2001 9:28 AM
> Subject: Re: [PHP] Quick mail function help.... please!!!
>
>
> > Hi
> >
> >
> > mail("recipient@domain.com", "My Subject", "My Message",
> > "From:
> > sender@domain.com\nReply-To: replyto@domain.com\nX-Mailer: PHP/" .
> > phpversion());
> >
> >
> > Is that what your after ?
> >
> > Regards
> >
> >
> > Girish
> >
> > ----- Original Message -----
> > From: "Kyle Smith" <dbzno1fan@hotmail.com>
> > To: <php-general@lists.php.net>
> > 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: dbzno1fan@hotmail.com
> > > AIM: legokiller666
> > >
> > >
> > > ----- Original Message -----
> > > From: "Kyle Smith" <dbzno1fan@hotmail.com>
> > > To: <php-general@lists.php.net>
> > > 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: dbzno1fan@hotmail.com
> > > AIM: legokiller666
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail:
php-list-admin@lists.php.net
> > >
> >
> >
> >