php contact form not working on go daddy

the mail() function

Moderators: egami, macek, gesf

Post Reply
ravisoni6262
New php-forum User
New php-forum User
Posts: 13
Joined: Mon Jun 13, 2011 4:08 am

Wed Jun 22, 2011 1:14 am

If you are testing this code on the server installed at your own site , kindly check for your SMTP installation, If have not installed it will surely not work ..

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Wed Jun 22, 2011 7:13 am

goDaddy sucks.

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Wed Jun 22, 2011 12:07 pm

why don't you take a quick look at this:
http://help.godaddy.com/article/510
http://community.godaddy.com/groups/web ... -not-work/
http://community.godaddy.com/groups/web ... send-mail/


You may also re-write your script to do something like this..

Code: Select all

$lame = mail($to,$subject,$body,$headers);
if ($lame) { 
  print_r($lame);
} else { 
  echo "Mail not sent, most likely I don't have configuration 2.0+, or I don't have my login credentials to the SMTP server set correctly.";
}
 

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests