Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

-Sendmail Error-

New Here ,
Dec 27, 2011 Dec 27, 2011

Hello All!

I have a contact form with a process.php script for the contact form i'm using on this site: http://greenzonepizza.com/contact.html

When i tested the form using GoDaddy, everything worked fine...but once my client switched to Network Solutions (for hosting) the message is no longer being sent : /

After doing some research i found that the Unix platform in NS needs a php.ini file in the cgi-bin with a sendmail path.

I then called NS (Network Solutions) to ge the correct path for the sendmail path, which i created for the php.ini file with the following script: sendmail_path = /data/23/2/12/1/2664816/user/htdocs

My question is where is the problem?

Keep in mind, the php.ini file with the one line sendmail  code is in the cgi-bin folder, while the process.php file is in the htdocs folder.

Any help is appreciated, thanks!

TOPICS
Server side applications
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 28, 2011 Dec 28, 2011

I'm not entirely sure, but you might have to delete a file in the cgi-bin after you add the php.ini file.  The one you need to delete is:

/cgi-bin/.php/php.coalesced.ini

I know it is a stupid question, but have you checked all the paths in the process.php file?

And the process.php file wasn't generated by GoDaddy was it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 28, 2011 Dec 28, 2011

I don't see that file, but the only files that i see in the cgi-bin are:

1.) fileman.cgi

2.) global.dat

3.) php.dat

4.) php.ini

As for the process.php file, it is not a GoDaddy file...it was code i created which until we switched to Network Solutions, worked fine : /

Here's my code for the process.php file (if you see something that may not work with Network Solutions please let me know, thanks!):

__________________________________________________________________________________________________________

<?php

/* Email Variables */

$emailSubject = 'Contact Form Submission';

$webMaster = 'greenzonepizza@gmail.com';

/* Data Variables */

$email = $_POST['email'];

$name = $_POST['name'];

$message = $_POST['message'];

$body = <<<EOD

<br><br><br>

Name: $name <br>

Email: $email <br>

Message: $message <br>

EOD;

$headers = "From: $email\r\n";

$headers .= "Content-type: text/html\r\n";

$success = mail($webMaster, $emailSubject, $body,

$headers);

/* Results rendered as HTML */

$theResults = <<<EOD

<html>

<head>

<title>sent message</title>

<meta http-equiv="refresh" content="1;URL=http://www.greenzonepizza.com/contact.html">

<style type="text/css">

</style>

</head>

</body>

</html>

EOD;

echo "$theResults";

?>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 28, 2011 Dec 28, 2011
LATEST

Your stuff looks fine. -Though take that with a grain of salt as the alcohol haze I am staring through might not be as clear as I think it is.

To be honest, any site I've had to work on that was hosted at Network Solutions - there has always been problems.

I'm going to put my money on the fact that your issue is probably 100% related to their server and not your files.

I don't have current access to any hosting accounts there so I can't poke around and from you saying that file isn't there - I'm clearly remembering things wrong..

Sorry I can't be more help. 

I'd call their tech support again and demand that it be looked at by a higher tier than those that answer the phone.

-or- tell your client to get better hosting.

-or- set someone on fire. (That's what my cat says you should do.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines