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 - ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 |
|
|||
|
"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/ |
|
|||
|
"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 |
|
|||
|
>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 |
|
|||
|
"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. |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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 |