GetDotted Domains

Viewing Thread:
"VIP Hosting mail form problems"

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.

Fri 26/12/08 at 21:04
Regular
Posts: 13
Hi Everyone!

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. :-(
Sun 21/09/14 at 12:32
Regular
Posts: 9
Hello

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;
}


?>
Sun 21/09/14 at 10:32
Staff Moderator
"Meh..."
Posts: 1,474
ketangudka wrote:
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.
Sun 21/09/14 at 00:28
Moderator
"Are you sure?"
Posts: 5,000
I don't believe you can change php.ini
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]
Sat 20/09/14 at 23:36
Regular
Posts: 9
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
Sat 20/09/14 at 12:48
Moderator
"Are you sure?"
Posts: 5,000
Hi Ketan and welcome to the forums!

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]
Sat 20/09/14 at 09:49
Regular
Posts: 9
Hello

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
Mon 29/12/08 at 12:24
Staff Moderator
"Aargh! Broken..."
Posts: 1,408
I have fixed your script problem and emailed you the details.
Sat 27/12/08 at 17:05
Regular
Posts: 13
Thanks Eccles, I sent you a private message with further details.

KRegards,

Yaro
Sat 27/12/08 at 14:48
Staff Moderator
"Aargh! Broken..."
Posts: 1,408
Are you using the Freeola Form to mail script or is this your own?
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.
Fri 26/12/08 at 21:04
Regular
Posts: 13
Hi Everyone!

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. :-(

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Unrivalled services
Freeola has to be one of, if not the best, ISP around as the services they offer seem unrivalled.
First Class!
I feel that your service on this occasion was absolutely first class - a model of excellence. After this, I hope to stay with Freeola for a long time!

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.