View Full Version : questions about FormMail

07-16-2005, 09:15 AM
I just switched over to WestHost 2.0 and am trying to get some form pages going. In 1.0, I used the cgiemail and would have a line in html like:

<form method=POST action="http://tempelittletheatre.org/forms/email_list.txt">

then the file email_list.txt would contain:

From: [email]
To: [required-to]
Subject: [subject]

Add to TLT email list

Email: [email]

That would send an email with the results formatted according to the text file.

I am trying to figure out how to do the same/similar thing with FormMail, but it's not clear how to do so. I have configured FM to send an email from a page, using:

<form action="http://www.tempelittletheatre.org/cgi-bin/formmail/FormMail.pl" method="post">
<input type=hidden name="recipient" value="ericmj@mindspring.com">
<input type=hidden name="subject" value="TLT email list request">
<input type=hidden name="redirect" value="http://tempelittletheatre.org/email_list_post.htm">
<p>Email Address:
<input name="Email_Address" type="text">
<input type="submit" name="Submit" value="Submit">


But obviously this doesn't format anything. So, any suggestions on where to look to find some examples of this sort of thing?


07-16-2005, 09:57 AM
I don't think the standard FormMail will do what you want really.
You may want to check out NMS FormMail which has a little more flexibility (and security).
Or, search back on either this forum or the PHP one for another solution (I think from WildJoker but I'm not sure).


07-16-2005, 11:42 AM
Or is it possible to use cgiemail on a WestHost 2.0 account?

07-16-2005, 03:53 PM
It is, and it used to be installed. It is not used any more because it is an old script and has a major security problem.

07-17-2005, 09:20 AM
I would take a look at the NMS (http://nms-cgi.sourceforge.net/) site as jalal mentioned. They have an alternative to formmail called TFMail that allows you a lot more flexibility. I have played with it some and once you get the hang of how it works it is pretty easy to work with.