imagekrazy
asked on
Mail Form
My email form isn't working, I am testing on the server and I am getting blank information and no email of the information.
I am attaching the files, any help with it will be appreciated .
spineForm.php
contact.html
I am attaching the files, any help with it will be appreciated .
spineForm.php
contact.html
ASKER
I appreciate your form, but I want to know my mistakes
steve
steve
All the fields value you want to get on the server side MUST have their name attribute set
In your page, most of them only have an id attribute
Example you MUST have :
<input type="text" maxlength="30" id="email" name="email">
instead :
<input type="text" maxlength="30" id="email" >
In your page, most of them only have an id attribute
Example you MUST have :
<input type="text" maxlength="30" id="email" name="email">
instead :
<input type="text" maxlength="30" id="email" >
Then run my working page to make sure things are working on your server and then we'll look at your code.
If you look at my code, you will see that the headers are much more complete than yours. The first line in your header, $mailheaders="From my testing site\n"; , is not a valid header line. Some SMTP servers will not send email without proper header info.
If you look at my code, you will see that the headers are much more complete than yours. The first line in your header, $mailheaders="From my testing site\n"; , is not a valid header line. Some SMTP servers will not send email without proper header info.
ASKER
I set the $totext to my email but my email didn't receive it the message.
Did it show you the 'results' at the top of the page? What web server and hosting company are you on? What version of PHP? Is there a SMTP server installed on your web server?
ASKER
go daddy and yes on SMTP and latest version of php
and yes it stated this in the browser;
To: youremail@yourdomain.com
Subject: Web Mail
blah
From: circleimage@gmail.com Reply-To : circleimage@gmail.com Return-Path : circleimage@gmail.com X-Mailer: PHP MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1
and yes it stated this in the browser;
To: youremail@yourdomain.com
Subject: Web Mail
blah
From: circleimage@gmail.com Reply-To : circleimage@gmail.com Return-Path : circleimage@gmail.com X-Mailer: PHP MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1
More details please, I have this form and similar ones running on half a dozen web sites on Godaddy. Linux? Windows? PHP version? Is the 'To' address a regular email address on your Godaddy hosting account or somewhere else?
PS: Email sent from a web page on Godaddy often takes a while to go out. You often won't get it instantly.
PS: Email sent from a web page on Godaddy often takes a while to go out. You often won't get it instantly.
ASKER
Its something simple and I cant figure it out yet,
On your form i replaced the $totext to my email address and it sits on my server which is godaddy and it spits out what i showed you which i will show you below again; and its been three hrs and no information in my godaddy email acct.
To: youremail@yourdomain.com
Subject: Web Mail
blah
From: circleimage@gmail.com Reply-To : circleimage@gmail.com Return-Path : circleimage@gmail.com X-Mailer: PHP MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1
On your form i replaced the $totext to my email address and it sits on my server which is godaddy and it spits out what i showed you which i will show you below again; and its been three hrs and no information in my godaddy email acct.
To: youremail@yourdomain.com
Subject: Web Mail
blah
From: circleimage@gmail.com Reply-To : circleimage@gmail.com Return-Path : circleimage@gmail.com X-Mailer: PHP MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1
Actually, I have been working with this for a while this afternoon. My form works just about everywhere but it wasn't working this afternoon on my Godaddy Windows hosting account. It turns out that the only way it would work is to send to an email address that is on my Godaddy account. It would not send to an outside email address and even when it did work finally, it would not send to the 'Cc' address apparently.
That means the '$toText' must be a valid email on your Godaddy account. At least that's the way it is working this afternoon.
That means the '$toText' must be a valid email on your Godaddy account. At least that's the way it is working this afternoon.
ASKER
Hello Dave, I appreciate the help.
I got my email form to show in the browser that i am testing, but Its not coming thru my godaddy email yet, First my old form worked and I was trying to fancy up the old form on another web page, and I found out that changing certain things just screw up the way php was calling my information.
I never had a problem before with testing my form , now i have to figure out why it still hasn't come thru my godaddy acct.
steve
I got my email form to show in the browser that i am testing, but Its not coming thru my godaddy email yet, First my old form worked and I was trying to fancy up the old form on another web page, and I found out that changing certain things just screw up the way php was calling my information.
I never had a problem before with testing my form , now i have to figure out why it still hasn't come thru my godaddy acct.
steve
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks Dave , I got mine to work with the cool looking CSS style:) My information is catching in the browser, Firefox, IE.
The only situation is I have to call Godaddy and see why the email isn't collecting on there side. And again thanks for the help, allowing me to see your form been a big help, I wouldn't be able to fix mine if I couldn't use your form.
steve
The only situation is I have to call Godaddy and see why the email isn't collecting on there side. And again thanks for the help, allowing me to see your form been a big help, I wouldn't be able to fix mine if I couldn't use your form.
steve
Glad to help, thanks for the points.
Open in new window