The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I got a few websites with freeola. Pay freeola webfreedom for hosting. I had two of the websites upgraded to VIP hosting, and now the mail form doesnt work (PHP).
It says this when details are posted from HTML page to PHP script.
[email protected]). /home/sites/vip9********* /httpd/ cgi-bin/ question-rus.php not world executable
Tried to use the same html and php codes on other "non-vip hosted" sites on the old WebFreedom hosting, and it still works ok...
Anyone know what happened and why VIP based scripts now dont function?
KRegards,
Yaro
P.S. Worst of all, I cant Regrade the VIP Hosting, it gives an error. :-(
Yes I have the vip package.
$child1 = check_input($_POST['superhero1']);
$child2 = check_input($_POST['superhero2']);
$mother = check_input($_POST['mother']);
$father = check_input($_POST['father']);
$attending = $_POST['attending'];
$message = 'Following people will attend';
$message .= $attending.'
';
$message .= $child1.'
';
$message .= $child2.'
';
$message .= $mother.'
';
$message .= $father.'
';
if(
mail(
'Ketan
'Testing 5',
$message,
null,
'-f Ketan
))
{
echo "Mail sent OK";
}
else
{
echo "Error sending email!";
}
header("Location:../thankyou.html");
function check_input($data)
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
Hello
Thank you for that - I tried using the freeola one as well which has not been forwarded yet.
[email protected]
but that does not work either.
Do I need to do anything to the script in terms of having a php.ini file?
My script is very simple in retrieving form inputs and building a message content.
So I am not sure why the mail() function does not work,
Regards,
Ketan
If you would like us to take a look for you, you'll need to upload and put into place whatever code you were using, as we'll need to see where it's erroring
Currently, you don't appear to have lot uploaded at all (unless you have a second site somewhere else!), but simply put, we need to see the problem before we can help.
You've reopened an old VIP thread. Are you using VIP hosting?
Take a look at this old code sample from an ex staffie it might help you with your script:
https://gist.github.com/DrPheltRight/407679
I would still pick up the mail directly while testing to ensure forwarding isn't the issue.
Forum member JTD is our resident PHP expert so he may be able to offer some proper help.
[s]Hmmm...[/s] Thank you for that - I tried using the freeola one as well which has not been forwarded yet.
[email protected]
but that does not work either.
Do I need to do anything to the script in terms of having a php.ini file?
My script is very simple in retrieving form inputs and building a message content.
So I am not sure why the mail() function does not work,
Regards,
Ketan
You need to use a Freeola email account in the 'form'.
See Recipients section in Freeola's Help page.
You can always add email forwarding to your non-Freeola account so the message ends up where you want it. But it's often best if you can pick up the email direct, especially when testing, in case it's getting blocked along the way.
[s]Hmmm...[/s] I have a very simple php script that parses the inputs to a form and mails them out.
The parsing works ok but the php mail function does not send anything out.
I had a look at the forums here and have used the -f function.
But the mail does not reach me even though the mail function returns ok.
Any help would be appreciated.
mail('[email protected]', 'subject', $message,'From: [email protected]', '-f [email protected]')
Regards,
Ketan
KRegards,
Yaro
Try setting the permissions of the PHP file to 644 using your FTP client (we recommend something like FileZilla, which is free). Also if it is your own script you might like to adjust it so the the PHP file doesn't reside in the CGI-BIN.
If that doesn't work the send me a message using the link under my avatar to let me know what your VIP ID is and I will look into it on Monday. If you can't wait until then, then post the URL of your site and I can look at it or send our support department a ticket with details of the problem.
I got a few websites with freeola. Pay freeola webfreedom for hosting. I had two of the websites upgraded to VIP hosting, and now the mail form doesnt work (PHP).
It says this when details are posted from HTML page to PHP script.
[email protected]). /home/sites/vip9********* /httpd/ cgi-bin/ question-rus.php not world executable
Tried to use the same html and php codes on other "non-vip hosted" sites on the old WebFreedom hosting, and it still works ok...
Anyone know what happened and why VIP based scripts now dont function?
KRegards,
Yaro
P.S. Worst of all, I cant Regrade the VIP Hosting, it gives an error. :-(