Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<b>E-MAIL FORM PROBLEM<b>

Status
Not open for further replies.

zetpap

Technical User
Oct 3, 2001
28
GR
Hi everyone!
I've made a very simple e-mail form with 4 text fields and 1 submit button. The action mails to a specific e-mail address but when I receive the mail (in Microsoft Outlook) I get a .att file and not the actual form. How can I fix that?
 
You will need some sort of form mail script to organize tghe form data into a readable format. There are some great cgi-froms that are available ( has a great one) if you are on a *nix server. If you are on an NT server that allows you to use ASP, I have an excellent formmail.asp script and instructions.

Email me cjohnson@SHOESbellcoglass.com (take my shoes off to email me) and I can send the script an dinstructions. The script is also available at worldwidemart.com. When in doubt, deny all terms and defnitions.
 
As was stated, you need some kind of formmail program.
It should look something lik this when you are done.
i happen to use formmail, so that is what it is setup for.

<TD WIDTH=&quot;50%&quot;>
<FORM METHOD=POST ACTION=&quot;/cgi-bin/formmail.cgi&quot;>
<input type=hidden name=&quot;recipient&quot; value=&quot;Webmaster@yoursite.com&quot;>
<input type=hidden name=&quot;subject&quot; value=&quot;what you want the subject line of your e-mail.&quot;>
<input type=hidden name=&quot;redirect&quot; value=&quot;/feedback.html&quot;>
<input type=&quot;CheckBox&quot; name=&quot;what, if anything you want them to check&quot;>
The words you want by the check box.
<TABLE border=&quot;0&quot; width=&quot;390&quot; align=&quot;center&quot;>
<TR>
<TD ALIGN=&quot;RIGHT&quot; width=&quot;66&quot;><FONT SIZE=&quot;2&quot;
FACE=&quot;Arial&quot;><EM><STRONG>Name</STRONG></EM></FONT></TD>
<TD width=&quot;314&quot;>
<INPUT TYPE=&quot;text&quot; SIZE=&quot;30&quot; NAME=&quot;Name&quot;>
</TD>
</TR>
<TR>
<TD ALIGN=&quot;RIGHT&quot; width=&quot;66&quot;><FONT SIZE=&quot;2&quot;
FACE=&quot;Arial&quot;><EM><STRONG>E-mail</STRONG></EM></FONT></TD>
<TD width=&quot;314&quot;>
<INPUT TYPE=&quot;text&quot; SIZE=&quot;35&quot; NAME=&quot;Email&quot;>
</TD>
</TR>
<TR>
<TD ALIGN=&quot;right&quot; VALIGN=&quot;top&quot; width=&quot;66&quot;><FONT SIZE=&quot;2&quot;
FACE=&quot;Arial&quot;><EM><STRONG>Comments</STRONG></EM></FONT></TD>
<TD width=&quot;314&quot;>
<TEXTAREA NAME=&quot;Comments&quot; ROWS=&quot;5&quot; cols=&quot;40&quot;></textarea>
<p><br>
<INPUT TYPE=&quot;RESET&quot; VALUE=&quot;Clear the form&quot;>
<INPUT TYPE=&quot;SUBMIT&quot; VALUE=&quot;Submit&quot;>
</p>
</TD>
</TR>
</TABLE>
</FORM>
 
If you use the formmail.cgi script, make sure you use the latest versions. There is ahole in formmail.cgi which allows nasty spammers to use your sendmail to forward spam and the emails will appear as if they came from your account.

Death to Spammers! When in doubt, deny all terms and defnitions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top