Help! I don't know anything about php forms. I'm building a simple website for a buddy, and he wants a simple "Join our mailing list" form on his site.
His web hosting company (Go-Daddy) has a php form feature that I was able to setup and configure to send an email to me with the data submitted by the user.
PROBLEM:
The emails from the form/php script get caught in the bulk/spam folder instead of going to my inbox. I flagged the message as "not spam" which included the address on the "white list" so future emails would go to the inbox. Unfortunately, the php form automatically takes the contents of the "email address" field and plugs it into the "FROM" field of the message, so EVERY MESSAGE FROM THE WEBSITE COMES FROM A DIFFERENT EMAIL ADDRESS, making it impossible to mark them as "not spam".
Is there a way to specify the same "from" address every time an email is sent from the website? If so, what is the syntax to specify this? Is it done in the HTML of the page, or does it have to be done in the gdform.php script?
I already put in a support ticket with Go-Daddy, and they said "You could indeed modify the form in such a way, but it would require custom coding that we unfortunately aren't allowed to troubleshoot. You may be able to find such coding using your search engine of choice, however. Please let us know if we can help you in any other way." Thanks guys!
Any help would be greatly appreciated.
Thanks in advance,
HB
Note - the source code I used for the form is below if it helps any.
Source Code:
<form action="gdform.php" method="post">
<input type="hidden" name="subject" value="Form Submission" />
<input type="hidden" name="redirect" value="thankyou.htm" />
<input type="hidden" name="subject" value="Mailing List request" />
<div align="center">
<center>
<table border="0" cellpadding="4" width="90%">
<tr>
<td width="30%" align="right">* Email:</td>
<td width="70%"><input type="text" name="Email" size="54"> (required)</td>
</tr>
<tr>
<td width="30%" align="right">Name:</td>
<td width="70%"><input type="text" name="Name" size="54"></td>
</tr>
<tr>
<td width="30%" align="right">Address:</td>
<td width="70%"><input type="text" name="Address" size="54"></td>
</tr>
<tr>
<td width="30%" align="right">City, State, Zip:</td>
<td width="70%"><input type="text" name="City" size="25">
<input type="text" name="State" size="4">
<input type="text" name="Zip" size="12"></td>
</tr>
<tr>
<td width="30%" align="right"></td>
<td width="70%"></td>
</tr>
<tr>
<td width="30%" align="right" valign="top">Comments:</td>
<td width="70%"><textarea rows="6" name="Comments" cols="42"></textarea></td>
</tr>
</table>
</center>
</div>
<p align="center"><input type="submit" name="submit" value="submit"/>
</p>
</form>



Reply With Quote
).

Bookmarks