How will I use mail function ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rock72

    How will I use mail function ?

    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

    #2
    Re: How will I use mail function ?

    "rock72" <UseLinkToEmail @dbForumz.com> wrote in message
    news:41ba7b27$1 _3@alt.athenane ws.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]




    Comment

    • Neophyte

      #3
      Re: How will I use mail function ?

      First make sure that "sendmail_p ath" 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]

      Comment

      • peter

        #4
        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.c om","Your Subject","Your msg body","From: Your from
        address");

        Comment

        • Paul is the bestest

          #5
          Re: How will I use mail function ?

          have you looked at the php manual yet?


          "Raven" <ravenNOSPAM@NO SPAMravenphpscr ipts.com> wrote in message
          news:32vud.7935 $0r.175@newsrea d1.news.pas.ear thlink.net...[color=blue]
          > "rock72" <UseLinkToEmail @dbForumz.com> wrote in message
          > news:41ba7b27$1 _3@alt.athenane ws.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]


          Comment

          Working...