Connecting Tech Pros Worldwide Help | Site Map

How will I use mail function ?

  #1  
Old July 17th, 2005, 10:57 AM
rock72
Guest
 
Posts: n/a
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
  #2  
Old July 17th, 2005, 10:57 AM
Raven
Guest
 
Posts: n/a

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


  #3  
Old July 17th, 2005, 10:58 AM
Neophyte
Guest
 
Posts: n/a

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]

  #4  
Old July 17th, 2005, 10:59 AM
peter
Guest
 
Posts: n/a

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");
  #5  
Old July 17th, 2005, 11:10 AM
Paul is the bestest
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending mass email fom php using mail function akuva answers 1 August 2nd, 2007 11:55 AM
sending mass email fom php using mail function akuva answers 1 August 2nd, 2007 06:15 AM
How to use mail( ) with out asked for "RECEIVE FIRST BEFORE SEND" Message nallinattu answers 7 January 9th, 2007 06:18 PM
mysql and mail() function Bandul answers 2 April 26th, 2006 10:55 AM