php go daddy, script finally working but not receiving emails

Please help:
My php script for a feedback form is finally working on my website through Go Daddy.
Users can type in info, hit send and are redirected to a thank you page.
The problem is, I’m still not getting the emails through Go Daddy. All of my settings with gd seem to be correct.
Any help with this would be greatly appreciated.
Quite the beginner with php but a fast learner :slight_smile:

I have included the script for my form.

<?php /* subject and email variables */ $emailSubject = "Contact Form"; $webMaster = "relay-hosting.secureserver.net"; ini_set('smtp', 'www.1215photo.com'); /* Gathering Data Variables */ $NameField = $_POST['name']; $EmailField = $_POST['email']; $PhoneField = $_POST['phone']; $ArchivalField = $_POST['archival']; $EventPhotographyField = $_POST['eventphotography']; $PostProductionField = $_POST['postproduction']; $OrderPrintsField = $_POST['orderprints']; $AdditionalCommentsField = $_POST['additionalcomments']; $body = <<<EOD


Name: $name
Email: $email
Phone: $phone
Archival: $archival
Event Photography: $event photography
Post Production: $post production
Order Prints: $order prints
Additional Comments: $additional comments
EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = "email ($emailSubject, $webMaster, $body, $headers)"; /* Results rendered as HTML */ $theResults = <<<EOD #conash3D0 { display:none; } thankyou

THANK YOU FOR YOUR INTEREST!
YOUR MESSAGE WAS SENT!

RETURN TO 1215 PHOTO

    COPYRIGHT 2011 1215 PHOTO ALL RIGHTS RESERVED


    303.332.4673

EOD; echo "$theResults"; ?>

you appear not to be sending the email to anyone:
[php]$success = “email ($emailSubject, $webMaster, $body, $headers)”;[/php]
in this line, you have the subject, website, message, from… but no recipient??

you need to add in the recipients email address before the subject.

Hope this helps

:wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service