By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,161 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

mail() through localhost on WinXP

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
"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

P: n/a
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

P: 2
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 discussion thread is closed

Replies have been disabled for this discussion.