All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

PHP Mail Form

Viewing post 1 to 9 (9 total posts)
Profile picture of Yar

yar said 1 year, 1 month ago:

I’m really in despair!!
All i want is to have a simple php contact form on flash my website. i use action script 3 code to call a mail.php file. it doesn’t seem to work.
after a search i’ve found out there are issues with ‘normal’ php files on GoDaddy. other than that i didn’t find any really helpful discussion. i looked for few days in godaddy help + google for solutions but found none, only ‘theories’.

*** can someone, once and for all, please solve the HOW to write a proper PHP form file that is valid and will work on godaddy!!! something quick, short and easy under all the conditions of what’s right and wrong to work with godaddy.

- the $ToEmail directed via the form is a GMAIL
- my system is WINDOWS
- i did not activate so far the DOMAIN EMAIL ACCOUNT
** i don’t know how much the above facts matter, but i think they might!

thanks for any help

Profile picture of JustinC

GoDaddy Contributor JustinC said 1 year, 1 month ago:

@yar

If you use the PHP mail() function you shouldn’t have to specify any server or anything like that. We would recommend you setup an email address with the domain and have the form send to that email address.

You can also review the following information for some additional ways to setup form mail on our shared hosting with PHP:

Using PHP Form Mailers

Profile picture of Yar

yar said 1 year, 1 month ago:

hi and thanks for the asnwer!
is there any good reason to setup a domain email address? cause i’d like it better if emails were directly sent to my @gmail account.

i’ve tried using gdform.php. problems are
1. i can’t use gmail there (as far as i’ve understood)
2. created the file just to see how it’s built but didn’t understand anything in it. ie the ToEmail isn’t written there and other codes are weird. i’m just a PHP beginner. how do u even use it? from the looks of the code i can’t figure out

Profile picture of Yar

yar said 1 year, 1 month ago:

anyone, please help on the PHP form matter!!
my website can not be fully operated until i fix this problem
i have a flash, action script 3 based site, with a contact page. code for php is inside the flash. code should work.
php code should work as well as i’ve used it on other site

possible problems:
a. godaddy doesn’t accept the way i wrote the php code
b. using gmail.com as address is void
c. action script 3 code is not as good as i think – but i have no idea how to really check this

NOTE TO GODADDY PERSONAL:
why is it that on other website it took me 2 secods to make a php form work, and here not only i can’t – but there is no real help to get?!?! all the FAQ related topics are too basic and pretty useless

Profile picture of ChrisG

GoDaddy Expert chrisg said 1 year ago:

@yar,

I apologize for the delay in getting back to you.

If you are sending from a gmail.com address, this is likely the cause of the issue. Some mail providers, like gmail.com will not allow mail to be sent out from a server that is not actually being sent from them. Generally it is a better idea to configure your mailer scripts to send from an address that is also part of the site name your script is for.

Christopher G.

Profile picture of Yar

yar said 1 year ago:

thanks for all the help staff members.

eventually i solved it by finding the solution on another website. solution was easier than i thought it would be + easier than described in the forums/faq here problem was it was still hard to find on google and mostly – it’s very tricky!!!

anyway this fact is kinda bad reputation for godaddy if you ask me. too bad.
case closed

Profile picture of ChrisG

GoDaddy Expert chrisg said 1 year ago:

@yar,

I am glad to hear you were able to get this worked out. If any other questions come up, do let us know.

Christopher G.

Profile picture of fidelity

fidelity said 11 months, 3 weeks ago:

@yar, I’m having same issue, please share fix!

Profile picture of Yar

yar said 10 months, 1 week ago:

hi sorry for the delay :)
quite frankly i’m not EXACTLY sure what i did that fixed the issue it might be a mix of code chages
but my better guess is this – at the end of the PHP form after all the codes you’ve put, remove the line that normally ‘closes’ the form and replace it with this:
<?php
}
die();
?>

hope this helps.. if it does let me know so i understand exactly what did the fix

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.