473,322 Members | 1,690 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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
Jul 17 '05 #1
8 4016
"chris" <so*****@here.com> wrote in message
news:3f******@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
Jul 17 '05 #2
"chris" <so*****@here.com> wrote in news:3f******@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/
Jul 17 '05 #3

"Good Man" <he***@letsgo.com> wrote in message
news:Xn***********************@216.196.97.132...
"chris" <so*****@here.com> wrote in news:3f******@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

Jul 17 '05 #4
>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 = my****@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
Jul 17 '05 #5
"chris" <so*****@here.com> wrote in news:3f********@funnel.arach.net.au:

"Good Man" <he***@letsgo.com> wrote in message
news:Xn***********************@216.196.97.132...
"chris" <so*****@here.com> wrote in news:3f******@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.
Jul 17 '05 #6
yep understood

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

thanksa
"Good Man" <he***@letsgo.com> wrote in message
news:Xn************************@216.196.97.132...
"chris" <so*****@here.com> wrote in news:3f********@funnel.arach.net.au:

"Good Man" <he***@letsgo.com> wrote in message
news:Xn***********************@216.196.97.132...
"chris" <so*****@here.com> wrote in news:3f******@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.

Jul 17 '05 #7
Good Man <he***@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
Jul 17 '05 #8

On 10-Jan-2004, "laidbak" <la*******@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 = my****@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
Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: | last post by:
Hi! I'm looking for unit-testing tools for .NET. Somthing like Java has --> http://www.junit.org regards, gicio
11
by: D. Yates | last post by:
Hi, In an effort to improve my own code and try to teach others that I work with that unit testing IS MANDATORY. I'm interested in examples of unit testing that other people are using. How...
4
by: Peter Rilling | last post by:
Does VS.NET 2005 Professional support integrated unit testing, or is that only with the team system?
22
by: David Warner | last post by:
Greetings! I am working on a C app that needs to read print files generated by lp that contain HP LaserJet PCL codes. If the PCL contains binary data to define a bit map to be printed on the...
6
by: Cybex | last post by:
I am taking a C++ class and would like to use a Linux based IDE vs C+ + .Net but I am a little lost in how to go about this. I think that the IDE and compilation tools are separate under Linux. I...
24
by: David | last post by:
Hi list. What strategies do you use to ensure correctness of new code? Specifically, if you've just written 100 new lines of Python code, then: 1) How do you test the new code? 2) How do...
2
by: Mark Elliott | last post by:
Hi All, I'm just playing with asp.net mvc and link-to-sql for the first time. I'm using visual web developer 2008. I create the project fine, choose nunit as my test framework in the wizard. ...
0
by: Matthew Fitzgibbons | last post by:
I'm by no means a testing expert, but I'll take a crack at it. Casey McGinty wrote: I've never run into this. Rule of thumb: always separate software from hardware. Write mock classes or...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.