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!

configuring formmail.pl query

Status
Not open for further replies.

meeble

Programmer
Sep 24, 2002
137
GB
Is it possible to configure formmail.pl ( so that the text which people type into the input boxes comes through on the email a different colour than the text on the rest of the email?

Many thanks

James
 
You may have to put the "Content-type: text/html\n\n";

Just after the subject part and before the body write

print MAIL "Content-Type: text/html\n\n";

And then where you want to print the text which people type in a input boxes, add a html tag to change the color. like
<font color=#00ff00>

Hope this helps. I have not tried it before though....

Cheers,
Hameed
 
Before you go any further, can I advise you NOT to use any formmail.pl script that ISN'T from the NMS project site ( The original script written by Matt Wright is currently in the FBI hit list for software for spammers.

Unfortunately Matt wrote his scripts when he was new to Perl and didn't know about the security flaws he opened up in his code. The NMS project has taken all his scripts and rewritten them without the security flaws. The site also offers full user support, if you have any problems configuring or using the scripts, by the developers who worked on the scripts.

Check item 3 from to see more as to why you shouldn't be using Matt's version of the script. It has been known for ISP to block and worse delete accounts of anyone hosting spamming tools, and seeing as some spammers now actively search the web for versions of formmail.pl, you could become the next target. Barbie
Leader of Birmingham Perl Mongers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top