PDA

View Full Version : FormMail Question


spiritwolf
January 16th, 2003, 11:50 PM
FormMail Question

Hi! I am new and needing help with the FormMail script. I hope someone here can help me..

It is setup and working but when someone use the form it send me an email saying:

Below is the result of your feedback form. It was submitted by
(email address) on Thursday, January 16, 2003 at 11:50:54
---------------------------------------------------------------------------

---------------------------------------------------------------------------

all I want it to say is:

subscribe ztc email address



I have tried to modify the file but have only made it not work....

Thank You


Ps.

This is the line where the code is located

print MAIL "Below is the result of your feedback form. It was submitted by\n";
print MAIL "$Config{'realname'} ($Config{'email'}) on $date\n";
print MAIL "-" x 75 . "\n\n";


I tried changing the above to: but it gives a 500 is error

print MAIL "Subscribe ztc ($Config{'email'})\n";

Steven.Bentley
January 17th, 2003, 07:51 PM
strange one... the cpde you posted that you've tried looks entirely reasonable to me, but I'm no perl expert. It looks like you have an unnecessary set of brackets however


print MAIL "Subscribe ztc $Config{'email'}\n";

spiritwolf
January 17th, 2003, 10:16 PM
Yes I tried that too. Actually I tried every way I could think of...

Steven.Bentley
January 18th, 2003, 05:01 PM
Check that when you removed those two extra lines you did it cleanly, and you haven't got any ; characters that you shouldn't have