DotDragnet
May 23, 2012, 01:27:49 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: PHP form mails not working on particular server  (Read 1907 times)
charlie
Hero Member
*****
Posts: 837



View Profile WWW Awards
« on: June 21, 2007, 05:07:26 PM »

I've got two php mail scripts that I've used on my hosting with no problems at all and have also used on a couple of clients hosting packages.

Now though I've been asked to put a form on another clients (which is also PHP enabled) and neither of them will work on it. I've uploaded a phpinfo file in case it helps ( http://www.formationtraining.co.uk/phpinfo.php ) ...

Can anyone see any reason why it wouldn't work ?

ta


Charlie
Logged

Tanthalas
Hero Member
*****
Posts: 1019



View Profile WWW Awards
« Reply #1 on: June 21, 2007, 05:09:45 PM »

What PHP version was your original server?  I notice that one's quite a recent version.

Might have to actually see some of the PHP scripts, Charlie old bean. smile
Logged

Aperture Science
We do what we must because we can
For the good of all of us, except the ones who are dead.
But there's no sense crying over every mistake
You just keep on trying 'til you run out of cake
And the science gets done, and you make a neat gun
For the people who are still alive
charlie
Hero Member
*****
Posts: 837



View Profile WWW Awards
« Reply #2 on: June 21, 2007, 05:17:15 PM »

mine is PHP Version 4.3.7

another clients is PHP Version 4.4.1

another is PHP Version 4.3.10


this one as you say is PHP Version 5.1.2 .. surely they'd be backward compatible though ?


Don't know if it helps but this is the error message I got from the first script I used

Quote
Notice: Undefined variable: SERVER_NAME in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 13

Notice: Undefined variable: subject in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 15

Notice: Undefined variable: recipient in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 23

Notice: Undefined offset: 1 in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 24

Notice: Undefined variable: recipient in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 28

Notice: Undefined variable: inhal in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 80

Notice: Undefined variable: headers in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 88

Notice: Undefined variable: recipient in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 89

Notice: Undefined variable: subject in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 95

Warning: mail() [function.mail]: SMTP server response: 503 5.5.1 Incorrect command sequence in C:\Domains\formationtraining.co.uk\wwwroot\phpmyformmail.php on line 95

phpMyFormmail

We couldn`t send the data you entered.
Please try it again or contact the webmaster / site`s admin
« Last Edit: June 21, 2007, 05:21:10 PM by charlie » Logged

Rosco
Global Moderator
Hero Member
*****
Posts: 917



View Profile Awards
« Reply #3 on: June 21, 2007, 05:20:50 PM »

might be something to do with it being installed on a Windows box?

I'd always stick with Windows/ASP and Linux/PHP to avoid weird problems
Logged
charlie
Hero Member
*****
Posts: 837



View Profile WWW Awards
« Reply #4 on: June 21, 2007, 05:22:50 PM »

Quote
might be something to do with it being installed on a Windows box?

I'd always stick with Windows/ASP and Linux/PHP to avoid weird problems

That did cross my mind as it initially was built with asp files .. but they enabled it for php .. maybe that's it !! anyway .. have asked for a contact at the hosts so have to see what happens from that !

edit: Stuck that page on my hosting for now
« Last Edit: June 21, 2007, 06:25:42 PM by charlie » Logged

JasonD
Global Moderator
Hero Member
*****
Posts: 546



View Profile Awards
« Reply #5 on: June 21, 2007, 06:42:39 PM »

Nothing (much) wrong with running PHP on Windows, although I'd only do it on Apache, IIS doesn't follow the CGI specs properly and generally acts weird if you try anything clever with certain $_SERVER variables.

register_globals is off on the server where it isn't working.
Logged
Tanthalas
Hero Member
*****
Posts: 1019



View Profile WWW Awards
« Reply #6 on: June 21, 2007, 10:12:30 PM »

register_globals is off on the server where it isn't working.


WHS. 

Quote
this one as you say is PHP Version 5.1.2 .. surely they'd be backward compatible though ?


As with MySQL 5 having strict mode on by default, several config options in PHP have had their default values changed for PHP 5.  It's a lot more sensible now, but it can bugger up some scripts that were developed under 4's slightly more lax environment (I'm referring to the basic, unedited installation, naturally).

As this says, you shouldn't really code with register_globals, as it can leave whacking great security holes if you're not careful.
« Last Edit: June 21, 2007, 10:19:32 PM by Tanthalas » Logged

Aperture Science
We do what we must because we can
For the good of all of us, except the ones who are dead.
But there's no sense crying over every mistake
You just keep on trying 'til you run out of cake
And the science gets done, and you make a neat gun
For the people who are still alive
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!