Connecting Tech Pros Worldwide Help | Site Map

How will I use mail function ?

rock72
Guest
 
Posts: n/a
#1: Jul 17 '05
I am developing a php script that automatically send email to the
inputed email addresses. Can you help?

Thanks


Tim

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-mail-fun...ict178639.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=600416
Raven
Guest
 
Posts: n/a
#2: Jul 17 '05

re: How will I use mail function ?


"rock72" <UseLinkToEmail@dbForumz.com> wrote in message
news:41ba7b27$1_3@alt.athenanews.com...[color=blue]
>I am developing a php script that automatically send email to the
> inputed email addresses. Can you help?
>
> Thanks
>
>
> Tim
>
> --
> http://www.dbForumz.com/ This article was posted by author's request
> Articles individually checked for conformance to usenet standards
> Topic URL: http://www.dbForumz.com/PHP-mail-fun...ict178639.html
> Visit Topic URL to contact author (reg. req'd). Report abuse:
> http://www.dbForumz.com/eform.php?p=600416[/color]

http://www.php.net/manual/en/ref.mail.php


Neophyte
Guest
 
Posts: n/a
#3: Jul 17 '05

re: How will I use mail function ?


First make sure that "sendmail_path" is set to point to your sendmail
installation.

Then in your code say

mail($to, $subject, $body)

Where $to contains the address, $subject is your subject line, and
$body contains the text of your message.

For further info see the manual page.

rock72 <UseLinkToEmail@dbForumz.com> wrote:
[color=blue]
>I am developing a php script that automatically send email to the
>inputed email addresses. Can you help?
>
>Thanks
>
>
>Tim[/color]

peter
Guest
 
Posts: n/a
#4: Jul 17 '05

re: How will I use mail function ?


rock72 wrote:[color=blue]
> I am developing a php script that automatically send email to the
> inputed email addresses. Can you help?
>
> Thanks
>
>
> Tim
>[/color]

If you use a server with sendmail smtp set up this will do

mail("you@you.com","Your Subject","Your msg body","From: Your from
address");
Paul is the bestest
Guest
 
Posts: n/a
#5: Jul 17 '05

re: How will I use mail function ?


have you looked at the php manual yet?


"Raven" <ravenNOSPAM@NOSPAMravenphpscripts.com> wrote in message
news:32vud.7935$0r.175@newsread1.news.pas.earthlin k.net...[color=blue]
> "rock72" <UseLinkToEmail@dbForumz.com> wrote in message
> news:41ba7b27$1_3@alt.athenanews.com...[color=green]
> >I am developing a php script that automatically send email to the
> > inputed email addresses. Can you help?
> >
> > Thanks
> >
> >
> > Tim
> >
> > --
> > http://www.dbForumz.com/ This article was posted by author's request
> > Articles individually checked for conformance to usenet standards
> > Topic URL: http://www.dbForumz.com/PHP-mail-fun...ict178639.html
> > Visit Topic URL to contact author (reg. req'd). Report abuse:
> > http://www.dbForumz.com/eform.php?p=600416[/color]
>
> http://www.php.net/manual/en/ref.mail.php
>
>[/color]


Closed Thread