testing mail() function from my pc

This is a discussion on testing mail() function from my pc within the PHP Language forums, part of the PHP Programming Forums category; i have apache, mysql and PHP setup on my pc for development purposes and i can run the scripts fine - ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-10-2004
chris
 
Posts: n/a
Default 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


Reply With Quote
  #2 (permalink)  
Old 01-10-2004
CountScubula
 
Posts: n/a
Default Re: testing mail() function from my pc

"chris" <someone@here.com> wrote in message
news:3fff8690@funnel.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
>
> at the moment i upload it to my donain and test it but that is a pain
>
> Thanks in advance
>
>


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


Reply With Quote
  #3 (permalink)  
Old 01-10-2004
Good Man
 
Posts: n/a
Default Re: testing mail() function from my pc

"chris" <someone@here.com> wrote in news:3fff8690@funnel.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/
Reply With Quote
  #4 (permalink)  
Old 01-10-2004
chris
 
Posts: n/a
Default Re: testing mail() function from my pc


"Good Man" <heyho@letsgo.com> wrote in message
news:Xns946C62209E44sonicyouth@216.196.97.132...
> "chris" <someone@here.com> wrote in news:3fff8690@funnel.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/


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



Reply With Quote
  #5 (permalink)  
Old 01-10-2004
laidbak
 
Posts: n/a
Default 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()
>funtion


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

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

; 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
Reply With Quote
  #6 (permalink)  
Old 01-11-2004
Good Man
 
Posts: n/a
Default Re: testing mail() function from my pc

"chris" <someone@here.com> wrote in news:3fff9ded$1@funnel.arach.net.au:

>
> "Good Man" <heyho@letsgo.com> wrote in message
> news:Xns946C62209E44sonicyouth@216.196.97.132...
>> "chris" <someone@here.com> wrote in news:3fff8690@funnel.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/

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


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.
Reply With Quote
  #7 (permalink)  
Old 01-11-2004
chris
 
Posts: n/a
Default 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.com> wrote in message
news:Xns946CDFE2C4D1Csonicyouth@216.196.97.132...
> "chris" <someone@here.com> wrote in news:3fff9ded$1@funnel.arach.net.au:
>
> >
> > "Good Man" <heyho@letsgo.com> wrote in message
> > news:Xns946C62209E44sonicyouth@216.196.97.132...
> >> "chris" <someone@here.com> wrote in news:3fff8690@funnel.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/

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

>
> 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.



Reply With Quote
  #8 (permalink)  
Old 01-11-2004
Markus G. Klötzer
 
Posts: n/a
Default Re: testing mail() function from my pc

Good Man <heyho@letsgo.com> wrote:

> 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.


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
Reply With Quote
  #9 (permalink)  
Old 03-07-2004
Mr. Bill
 
Posts: n/a
Default Re: testing mail() function from my pc


On 10-Jan-2004, "laidbak" <laidbak69@hotmail.com> wrote:

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

>
> You do not have to run a mail server... in your php.ini set these lines:
>
> [mail function]
> ; For Win32 only.
> SMTP = mail.example.com
>
> ; 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




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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0