473,387 Members | 1,364 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,387 software developers and data experts.

mail() through localhost on WinXP

Hi,

Have been busy figuring this out for a couple of hours now, but to no avail.
I'm testing a form build in Flash that is being submitted through a PHP
page. All working fine as long as the PHP page is on the webserver of my
ISP. However running the PHP file local (apache, PHP 4.2.3. on WInXp Pro);
it does not work.

I already had a look at the php.ini file and changed the SMTP lin to SMTP =
smtp.myprovider.nl Now that seems (!) to work, but now I am having other
errors like:

Warning: Server Error in k:\phpdev\private\flashmail\domail_tut.php on line
27

Warning: Bad Message destination in
k:\phpdev\private\flashmail\domail_tut.php on line 38

So here's line 27:
mail($destinationAdress, "$subject [ from $fullName ]", $FormContent, "From:
$email");

And here's line 38
mail( "$email", "TYPE SUBJECT OF AUTORESPONDER EMAIL HERE",
"$mailContent\n","From:YO******@YOURSERVER.COM \n" );

Obviously i tried with real adresses ;-)

I just cannot figure out what's going on here. Have been searching all over
the web, and noticed that there might be problems on Windows. However ... no
solutions?

By the way: why would this possibly be important? Well, because the whole
thing is part of a tutorial on Flash and PHP and as not everyone who will
read that tutorial will have an ISP with PHP support, it would be nice if
the could get it working local.

Thanks for any insights.

John

--
----------------------------------------------------------------------
Please reply only to the group, so everyone may share
----------------------------------------------------------------------
RESOURCES
http://groups.google.com/advanced_gr..._ugroup=*flash
http://www.macromedia.com/desdev/mx/flash/
http://www.macromedia.com/v1/tipsubm...pic_browse.cfm
----------------------------------------------------------------------
Jul 17 '05 #1
3 2492
"Laiverd.COM" <sh******************@someserver.com> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
Hi,

Have been busy figuring this out for a couple of hours now, but to no avail. I'm testing a form build in Flash that is being submitted through a PHP
page. All working fine as long as the PHP page is on the webserver of my
ISP. However running the PHP file local (apache, PHP 4.2.3. on WInXp Pro);
it does not work.

I already had a look at the php.ini file and changed the SMTP lin to SMTP = smtp.myprovider.nl Now that seems (!) to work, but now I am having other
errors like:

Warning: Server Error in k:\phpdev\private\flashmail\domail_tut.php on line 27

Warning: Bad Message destination in
k:\phpdev\private\flashmail\domail_tut.php on line 38

So here's line 27:
mail($destinationAdress, "$subject [ from $fullName ]", $FormContent, "From: $email");

And here's line 38
mail( "$email", "TYPE SUBJECT OF AUTORESPONDER EMAIL HERE",
"$mailContent\n","From:YO******@YOURSERVER.COM \n" );

Obviously i tried with real adresses ;-)

I just cannot figure out what's going on here. Have been searching all over the web, and noticed that there might be problems on Windows. However ... no solutions?

By the way: why would this possibly be important? Well, because the whole
thing is part of a tutorial on Flash and PHP and as not everyone who will
read that tutorial will have an ISP with PHP support, it would be nice if
the could get it working local.

Thanks for any insights.

John

--
----------------------------------------------------------------------
Please reply only to the group, so everyone may share
----------------------------------------------------------------------
RESOURCES
http://groups.google.com/advanced_gr..._ugroup=*flash
http://www.macromedia.com/desdev/mx/flash/
http://www.macromedia.com/v1/tipsubm...pic_browse.cfm
----------------------------------------------------------------------


Why no install a mail server as well?
Argosoft do a free one.
Then simply change the php.ini to point to it

Regards
Richard Grove

http://shopbuilder.org - ecommerce systems
Become a Shop Builder re-seller:
http://www.affiliatewindow.com/affil...ls.php?mid=611
http://www.affiliatewindow.com/a.pl?590

Jul 17 '05 #2
Installing a mailserver could well do in my case. However that would mean
that everybody using this tutorial local, would also have to install that.
My feel is that is a little over the top after they already installed the
phpdev package from firepages. Thanks for the suggestion though, I'll keep
it in mind if it doesn't work out.

John

--
----------------------------------------------------------------------
Please reply only to the group, so everyone may share
----------------------------------------------------------------------
RESOURCES
http://groups.google.com/advanced_gr..._ugroup=*flash
http://www.macromedia.com/desdev/mx/flash/
http://www.macromedia.com/v1/tipsubm...pic_browse.cfm
----------------------------------------------------------------------
Jul 17 '05 #3
Hii to everybody

I have installed the mail server at my PC but I don't know the changes should be made in php.ini file to make it work.

plz help me in this regard.



Hav a nice day!!

Sachin Kalra
Jul 5 '06 #4

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

Similar topics

2
by: Safras Ahamed | last post by:
I have windows xp pc and i have installed apache as a web server and php also working fine, but when i am sending mail, its giving me following error when upload same to linux live server its...
4
by: Angelos | last post by:
What are the steps to configure PHP and sendmail on a linux BOX (Specifically Fedora Core 2 or 3) in order to make mail() function to work ? I haven't done any changes ... my configuration files...
9
by: Leo Breebaart | last post by:
I am writing a utility in Python and I'd like to add a command-line option "--mailto <address>" that will cause an e-mail summary to be sent to <address> when the utility finishes running. My...
2
by: Roy T | last post by:
Hi, I got this code from the web, but i can't get it to work. Is there any special setting on my local WinXP machine to make it works? I have enabled the IIS-SMTP Service. Anything else? Dim...
5
by: bilal | last post by:
I have installed PHP , Apache on WinXP . I am using php mail function but i am getting error i also have installed Argosoft mail server and it is running properly using port 25 and php.ini is also...
8
by: Robert Dufour | last post by:
Dim message As New MailMessage("mymail@mydomain.com", "mymail@mydomain.com", "Test", "Test") Dim emailClient As New SmtpClient("localhost") emailClient.Send(message) The IIS server is...
1
by: apasj06 | last post by:
hello everyone: I am trying to send email via php. I using window XP home edition. My mail client is outlook express. I configured mail client to send email via my aol email account. mail...
17
by: William Gill | last post by:
My development machine (WinXP, Apache 2.2.4) does not have an smtp server, and I don't really want to install one if I can help it. Does anyone know of a simple method of testing php scripts that...
7
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.