PDA

View Full Version : Contact Form Not Working - Godaddy is host


downtownsam403706
04-01-2010, 02:14 PM
I followed the thread on 03-24-2010 - Contact Form Not Working ( http://www.webassist.com/forums/showthread.php?t=10174 ). I've tried everything mentioned in that thread to no avail.

The contact page redirects to the thank you page but I have not received the email. GoDaddy is my host, and I am on Windows and PHP 5. At this point I've just used the out of box form and have not done any edits other than some of the script. http://mandjdelivers.org/test-form/contactus.php

Godaddy told me to use this: relay-hosting.secureserver.net
I've tried this: smtp.secureserver.net
Also this: smtp.secureserver.net:80

Thanks,
Sam

neilo
04-01-2010, 03:20 PM
Hi Sam,

smtp.secureserver.net seems to be the most usually successful smtp setting.

Did you also try changing line 9 in your WA_Universal_Email/WAUE_contact_1.php file too? From:

$MailFrom = "".((isset($_POST["Email_address"]))?$_POST["Email_address"]:"") ."";

to

$MailFrom = "web@mydomain-name.com"; /* (the bit before the @ can be anything, the mydomain-name.com is obviously the name of the domain you're sending from)*/

Some hosts won't allow mails to be sent from email addresses that aren't from their own domain. CFSP by default sends from an adress entered in the email field of the form, which could be anything. Changing line 9 of WAUE_contact_1.php forces an acceptable 'From' address.

and line 15 from:

$WA_MailObject = WAUE_Definition("".($WAGLOBAL_Email_Server) ."","25","","","","");

to

$WA_MailObject = WAUE_Definition("".($WAGLOBAL_Email_Server) ."","80","","","","");

which just forces port 80 instead of 25

Also check the the sent email isn't being filtered as spam somewhere along the line.

downtownsam403706
04-01-2010, 04:15 PM
I ran a couple tests after trying the suggestions neilo made and had no luck...

Jason Byrnes
04-02-2010, 08:12 AM
what type of hosting do you have with GoDaddy? Is it Linux or Windows based?

GoDaddy's Windows PHP plans do not have proper support for the mail() function. If you have a Windows plan, try to have GoDaddy switch you over to a Linux plan.