testing mail() function from my pc

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

    testing mail() function from my pc

    i have apache, mysql and PHP setup on my pc for development purposes and i
    can run the scripts fine - except when it comes to the mail() funtion

    what is the easiest way to set it up so i can send email's using the mail()
    funtion

    at the moment i upload it to my donain and test it but that is a pain

    Thanks in advance


  • CountScubula

    #2
    Re: testing mail() function from my pc

    "chris" <someone@here.c om> wrote in message
    news:3fff8690@f unnel.arach.net .au...[color=blue]
    > i have apache, mysql and PHP setup on my pc for development purposes and i
    > can run the scripts fine - except when it comes to the mail() funtion
    >
    > what is the easiest way to set it up so i can send email's using the[/color]
    mail()[color=blue]
    > funtion
    >
    > at the moment i upload it to my donain and test it but that is a pain
    >
    > Thanks in advance
    >
    >[/color]

    Forgive me, but this depends on what you mean by easy, there are a couple
    solutions, that allow you to test easily, but sometimes, not so easy to set
    up.

    I recomend, getting another machine, put redhat on it, and keep it next to
    your desktop.

    or you can use something like virtual pc, and run a virtual machine on your
    desktop.

    with either one, you can map your a pc drive, say L: to the linux box, this
    way you do not even have to mess with ftp or anything.


    --
    Mike Bradley
    http://www.gzentools.com -- free online php tools


    Comment

    • Good Man

      #3
      Re: testing mail() function from my pc

      "chris" <someone@here.c om> wrote in news:3fff8690@f unnel.arach.net .au:
      [color=blue]
      > i have apache, mysql and PHP setup on my pc for development purposes
      > and i can run the scripts fine - except when it comes to the mail()
      > funtion
      >
      > what is the easiest way to set it up so i can send email's using the
      > mail() funtion[/color]


      you need to host a mail server. if you're on windows, try ArgoSoft's
      products - thats what i use. they have a free version, too.


      Comment

      • chris

        #4
        Re: testing mail() function from my pc


        "Good Man" <heyho@letsgo.c om> wrote in message
        news:Xns946C622 09E44sonicyouth @216.196.97.132 ...[color=blue]
        > "chris" <someone@here.c om> wrote in news:3fff8690@f unnel.arach.net .au:
        >[color=green]
        > > i have apache, mysql and PHP setup on my pc for development purposes
        > > and i can run the scripts fine - except when it comes to the mail()
        > > funtion
        > >
        > > what is the easiest way to set it up so i can send email's using the
        > > mail() funtion[/color]
        >
        >
        > you need to host a mail server. if you're on windows, try ArgoSoft's
        > products - thats what i use. they have a free version, too.
        >
        > http://www.argosoft.com/applications/mailserver/[/color]

        THANKS
        that works great - will save me a lot of time too



        Comment

        • laidbak

          #5
          Re: testing mail() function from my pc

          >what is the easiest way to set it up so i can send email's using the mail()[color=blue]
          >funtion[/color]

          You do not have to run a mail server... in your php.ini set these lines:

          [mail function]
          ; For Win32 only.
          SMTP = mail.example.co m

          ; For Win32 only.
          sendmail_from = myname@example. com


          Make sure these are correct values and you have relay access to the server
          you typed into SMTP.

          If you are running IIS on windows you would send this to "localhost" as long
          as you have the smtp service running.

          --
          Wil Moore III

          Comment

          • Good Man

            #6
            Re: testing mail() function from my pc

            "chris" <someone@here.c om> wrote in news:3fff9ded$1 @funnel.arach.n et.au:
            [color=blue]
            >
            > "Good Man" <heyho@letsgo.c om> wrote in message
            > news:Xns946C622 09E44sonicyouth @216.196.97.132 ...[color=green]
            >> "chris" <someone@here.c om> wrote in news:3fff8690@f unnel.arach.net .au:
            >>[color=darkred]
            >> > i have apache, mysql and PHP setup on my pc for development purposes
            >> > and i can run the scripts fine - except when it comes to the mail()
            >> > funtion
            >> >
            >> > what is the easiest way to set it up so i can send email's using the
            >> > mail() funtion[/color]
            >>
            >>
            >> you need to host a mail server. if you're on windows, try ArgoSoft's
            >> products - thats what i use. they have a free version, too.
            >>
            >> http://www.argosoft.com/applications/mailserver/[/color]
            >
            > THANKS
            > that works great - will save me a lot of time too[/color]

            just make sure that you lock up the ports or prevent relaying when you're
            not explictly testing php scripts - if you're not behind a firewall, self-
            hosted mailservers are the #1 senders of SPAM, unbeknownst to their owners.
            i get nosy inquiries every once in a while trying to relay a message to see
            if they can take advantage.

            Comment

            • chris

              #7
              Re: testing mail() function from my pc

              yep understood

              i will only have it runnign when i am testing scripts anyway

              thanksa
              "Good Man" <heyho@letsgo.c om> wrote in message
              news:Xns946CDFE 2C4D1Csonicyout h@216.196.97.13 2...[color=blue]
              > "chris" <someone@here.c om> wrote in news:3fff9ded$1 @funnel.arach.n et.au:
              >[color=green]
              > >
              > > "Good Man" <heyho@letsgo.c om> wrote in message
              > > news:Xns946C622 09E44sonicyouth @216.196.97.132 ...[color=darkred]
              > >> "chris" <someone@here.c om> wrote in news:3fff8690@f unnel.arach.net .au:
              > >>
              > >> > i have apache, mysql and PHP setup on my pc for development purposes
              > >> > and i can run the scripts fine - except when it comes to the mail()
              > >> > funtion
              > >> >
              > >> > what is the easiest way to set it up so i can send email's using the
              > >> > mail() funtion
              > >>
              > >>
              > >> you need to host a mail server. if you're on windows, try ArgoSoft's
              > >> products - thats what i use. they have a free version, too.
              > >>
              > >> http://www.argosoft.com/applications/mailserver/[/color]
              > >
              > > THANKS
              > > that works great - will save me a lot of time too[/color]
              >
              > just make sure that you lock up the ports or prevent relaying when you're
              > not explictly testing php scripts - if you're not behind a firewall, self-
              > hosted mailservers are the #1 senders of SPAM, unbeknownst to their[/color]
              owners.[color=blue]
              > i get nosy inquiries every once in a while trying to relay a message to[/color]
              see[color=blue]
              > if they can take advantage.[/color]


              Comment

              • Markus G. Klötzer

                #8
                Re: testing mail() function from my pc

                Good Man <heyho@letsgo.c om> wrote:
                [color=blue]
                > just make sure that you lock up the ports or prevent relaying when you're
                > not explictly testing php scripts - if you're not behind a firewall, self-
                > hosted mailservers are the #1 senders of SPAM, unbeknownst to their owners.
                > i get nosy inquiries every once in a while trying to relay a message to see
                > if they can take advantage.[/color]

                I use Hamster, in its default setting it is invisible to the outside
                world.

                cu

                mgk
                --
                Quantum Physics: The Dreams that Stuff is made of.
                Michael Sinz

                Comment

                • Mr. Bill

                  #9
                  Re: testing mail() function from my pc


                  On 10-Jan-2004, "laidbak" <laidbak69@hotm ail.com> wrote:
                  [color=blue][color=green]
                  > >what is the easiest way to set it up so i can send email's using the
                  > >mail()
                  > >funtion[/color]
                  >
                  > You do not have to run a mail server... in your php.ini set these lines:
                  >
                  > [mail function]
                  > ; For Win32 only.
                  > SMTP = mail.example.co m
                  >
                  > ; For Win32 only.
                  > sendmail_from = myname@example. com
                  >
                  >
                  > Make sure these are correct values and you have relay access to the server
                  > you typed into SMTP.
                  >
                  > If you are running IIS on windows you would send this to "localhost" as
                  > long
                  > as you have the smtp service running.
                  >
                  > --
                  > Wil Moore III[/color]



                  Yes, that is how I did it. I was quite surprised that I would have to have
                  another machine, or that I would have to host a mail server myself. I just
                  yesterday ran into this and went to the ini file and figured this one out.
                  It works fine, just the way you spelled out. There is one little glitch
                  though. Each time I send mail through, two copies are generated for some
                  reason. That is why I am up at 4:30 in the morning right now. Got to
                  thinking about it and couldn't get back to sleep!

                  Maybe if I get it figured out I can get a few more ZZZZs.

                  Mr. Bill

                  Comment

                  Working...