ldoozer Posted November 26, 2006 Share Posted November 26, 2006 Hi all, I have been using a free mailer script for a while now from http://www.dtheatre.com/scripts/formmail.php which has been great but have just tried to use it on a new server which only supports PHP v4 and 5. Does anyone know of any good mailer scripts for these version???ThanksSteve Quote Link to comment https://forums.phpfreaks.com/topic/28559-php4-or-5-extensive-mail-script/ Share on other sites More sharing options...
trq Posted November 26, 2006 Share Posted November 26, 2006 What php version were you using previously? AFAIK the code you linked to should work fine with php{4,5}. Quote Link to comment https://forums.phpfreaks.com/topic/28559-php4-or-5-extensive-mail-script/#findComment-130656 Share on other sites More sharing options...
ldoozer Posted November 26, 2006 Author Share Posted November 26, 2006 think it was php version 3 -something, but i tried exactly the same html page and php mail script on both, and worked fine on one but not the other- assumed that it must be a version problem. Quote Link to comment https://forums.phpfreaks.com/topic/28559-php4-or-5-extensive-mail-script/#findComment-130659 Share on other sites More sharing options...
trq Posted November 26, 2006 Share Posted November 26, 2006 Its more than likely just a setting. Are you getting any errors?PS; php3 is VERY old. Quote Link to comment https://forums.phpfreaks.com/topic/28559-php4-or-5-extensive-mail-script/#findComment-130679 Share on other sites More sharing options...
ldoozer Posted November 26, 2006 Author Share Posted November 26, 2006 Not getting errorsin fact its sending the email, but with no content and ignoring the mandatory fields i have set, but as i the same paegs work fine on another server. weird no? Quote Link to comment https://forums.phpfreaks.com/topic/28559-php4-or-5-extensive-mail-script/#findComment-130680 Share on other sites More sharing options...
trq Posted November 26, 2006 Share Posted November 26, 2006 It would seem its just a poorly coded or old script. Any variables being passed from a html form need to be referenced through the $_POST array and I can't find any calls to it in the code. Quote Link to comment https://forums.phpfreaks.com/topic/28559-php4-or-5-extensive-mail-script/#findComment-130692 Share on other sites More sharing options...
ldoozer Posted November 26, 2006 Author Share Posted November 26, 2006 Ok no probs thanks for your help. Quote Link to comment https://forums.phpfreaks.com/topic/28559-php4-or-5-extensive-mail-script/#findComment-130696 Share on other sites More sharing options...
wildteen88 Posted November 27, 2006 Share Posted November 27, 2006 Its a setting issue in that case if thorpe cannot find any calls to any superglobal arrays. Your PHP3 server has a setting called register_globals enabled. This allows you to use $var instead of $_POST['var'] or $HTTP_POST_VARS['var']. register_global can create a security exploits in your code if you are not careful and, thus the decision from the PHP Devs to disable this setting by default as of PHP4.2 (or PHP4.3 cant remeber which version), also this setting will be going completely too as of PHP6.However for a decent mail script. I have heard a few members recommending a mail script called phpMailer Quote Link to comment https://forums.phpfreaks.com/topic/28559-php4-or-5-extensive-mail-script/#findComment-131076 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.