PDA

View Full Version : FormMail Setup


70bowtie
11-21-2002, 10:15 AM
Hello all,

This is all new to me, thus... simple questions need some simple answers:

1. Inside formmail.pl Do the # marks indicate 'remarked' type text?


2. Can I edit (setup the variables) right in the lines that start with the @ symbol and the $ symbol where there are no # symbols?

2.a. Is there a site that shows a quick & easy cheatsheet of the meanings of all these symbols? I could learn a lot with that!



3. If numbers 1. and 2. (above) are true, can I assume the following change is correct:

@referers = ('scriptarchive.com','209.196.21.3')
changed to
@referers = ('lifespringmassage.com')
Do I leave these quotes and parens in there?


4. I can't figure out the location of my sendmail. I've been in CP, File Mngr, searching around to no avail. I tried to get Putty.exe to run thinking Maybe? with that connected I could do the unix command of WHICH SENDMAIL to find the correct address. I had no luck getting Putty running (see question 5.), so I'm out of ideas. Can you show a line in place of $mailprog = '/usr/lib/sendmail -i -t'; that will give me an idea how to fill this in... or what to go look for?


5. Off subject.... What do I put in the Host Name box of Putty to get it to find lifespringmassage.com. I've plugged in about a million things. It keeps telling me it can't find the host. ???

5.a. Is there a home site for Putty where I could go and learn what it's supposed to do.. and how to configure it?


Sorry to get so long on tooth here! I really do appreciate all the help you guys have passed on! If I ever get a handle on some of this, I'll answer a few of these questions, rather than asking all of them.

Thanks,
Mark

70bowtie
11-21-2002, 11:30 AM
All,
I got the putty problems worked out. It's working now, so please disregard that part.

In doing the "which sendmail" command in putty, it's finding no sendmail path. so I guess I'm off to the supt people with a TT.

Thanks,
Mark

SnakEyez
11-21-2002, 11:52 AM
Go to http://faq.hostrocket.com the answer to your sendmail question is right there.

70bowtie
11-21-2002, 12:38 PM
Thanks Snakeyez,

Must have been right after your replied and right before I saw it.... I was writing a TT to HR.... they have the FAQ quoted on the TT launch screen.

Thanks for your help!!
Mark

70bowtie
11-21-2002, 12:41 PM
All,

The only part left to be answered is the where-abouts of a cheatsheet for all these expressions in the formmail.pl file. I've been reading a lot.. and learning some, and I don't really want to read a whole book on PERL. If anyone knows of a list or dictionary of term / expressions, I'll bet it would be handy.

M

SnakEyez
11-21-2002, 01:31 PM
Look here this is all the information regarding the formmail script and tell you how to use every feature it can offer.

http://scriptarchive.com/readme/formmail.html

70bowtie
11-21-2002, 01:42 PM
I did see this.. I actually had found the web site. Mainly, all I've had time to do so far is read the table of contents and then pick out the first few variables to try to set up. Good resource!
The part I didn't see is an explaination of the expressions used throughout the .pl file.

The author explains a few of these in a couple places right in the .pl and the readme.txt, but it seems like the program is using a lot more of these than are explained.
He even eludes to the idea of reading an entire book on Perl.
Gues I just hoping for the Cliff's Notes <g>.

M

don5408
11-21-2002, 10:22 PM
"1. Inside formmail.pl Do the # marks indicate 'remarked' type text?"

Correct...everything preceeded by a # is interpreted by Perl as a comment and ignored (just like using REM in a .BAT file, ; in an .INF or .INI file, <!-- --> in an .HTML file etc).

"2. Can I edit (setup the variables) right in the lines that start with the @ symbol and the $ symbol where there are no # symbols?"

Correct again.

"2.a. Is there a site that shows a quick & easy cheatsheet of the meanings of all these symbols? I could learn a lot with that!"

hummm...I dunno about the "quick and easy" part. There are plenty of Perl tutorials (just use any search engine to search for "perl 101", "perl introduction" or "perl tutorial", I'm sure you'll find lots of good resources) however if you're just starting out your immediate goal is just setting up and using existing scripts (as opposed to writing your own) they may be TMI, as a general rule most everything one needs to know to setup a script can be found either within the script itself or in the ReadMe documentation.

That being said try this: variables (http://quong.com/perlin20/#LtohTOCentry-9).

"3. If numbers 1. and 2. (above) are true, can I assume the following change is correct:

@referers = ('scriptarchive.com','209.196.21.3')
changed to
@referers = ('lifespringmassage.com')
Do I leave these quotes and parens in there?"

Well you can try that however as shown in the example it's common to include both your domain and IP address in the referers variable, if that doesn't work try:

@referers = ('lifespringmassage.com','66.192.44.36');

"4. I can't figure out the location of my sendmail"

Try $mailprog = '/usr/sbin/sendmail -i -t';
...that works for me and I'm also on Host32.

As an example if you wanted to set up formmail to send mail to one (and only one) specific email address try the following variables where "username" (username@lifespringmassage.com) = the email addy you wish to use:

$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('lifespringmassage.com','66.192.44.36');
@recipients = ('^username\@lifespringmassage\.com');

That's it...pretty much everything else you setup in your form tag.

Best o' luck!
Don

70bowtie
11-21-2002, 11:38 PM
Don,
Your the best!
I've been pouring over this and a lot more all day. Boy, do my eyes hurt.
I've learned a lot, but there's a ton more. I've been using Netobjects Fusion... so it seems like eveything I learn about these scripts has to be tranlated into NOF. I'm pulling my hair out here.
I should probably have this all running by now, but it's a learning curve in so many places... scripts, perl, NOF, HR server..... I might just get old and die before I get a firm handle on it all. Trying to concentrate, I've locked out my wife and kids (they're grown). They all hate my guts now.
In a week or so (about 5 years from now) I should be an expert at all of this, right?

Thanks for all your help (by the way.. what you said above, turned out to be right)!!

Does anybody ever see anything in that HR webcam except for the equipmant?

Thanks,
Mark

don5408
11-22-2002, 03:37 AM
"Thanks for all your help"

You're quite welcome!

"Does anybody ever see anything in that HR webcam except for the equipmant?"

Absolutely...as the server room overlooks the conference room from time to time one can catch a glimpse of HostRocket's crack staff busy doing...well I'm not exactly sure *what* those folks are up to, check it out (http://home.ptd.net/~don5408/hr/hr_staff.gif) and see for yourself.

Actually I bet if you take a look you may be able to see a staff meeting in progress right now!

http://serverroom.hrnoc.net (http://home.ptd.net/~don5408/hr/serverroom.html)

Don

HRGraham
11-22-2002, 04:01 AM
Great pic Don!

70bowtie
11-22-2002, 10:44 AM
Don,
This is Great!! LOL

Graham,
Which one are you?

M

HRGraham
11-22-2002, 02:56 PM
I'm the one closest to the camera twirling like an idiot.

70bowtie
11-22-2002, 03:10 PM
"twirling like an idiot"

LOL

You guys are the greatest. I'm actually having fun here.

M

don5408
11-22-2002, 03:44 PM
"I'm the one closest to the camera twirling like an idiot."

LOL...did you follow both links in my post?

If what you are doing in the first pic is referred to as "twirling like an idiot" how do we describe what the coworker who was sitting directly across from you in the first pic is doing in the second? ;-)

Don

HRGraham
11-22-2002, 05:03 PM
I didn't click on the second link because I figured it was just a link to the serverroom cam. The second one is a great image because John manages a full 360 spin.

-Graham

70bowtie
11-22-2002, 05:09 PM
I didn't click the second one either...

Don may have had a little too much time on his hands that day.

Wonder if he's got time to set up my formmail?

This stuff sucks

don5408
11-22-2002, 09:09 PM
"Don may have had a little too much time on his hands that day. Wonder if he's got time to set up my formmail? This stuff sucks"

What exactly are you having trouble with, setting up the form itself? If you post some details on exactly what you are looking to do (what info you want the form to submit/what fields you wish to include) I or someone else may be able to give you some pointers.

Don

70bowtie
11-22-2002, 10:04 PM
Wow,

Dinner just walked in the door with my wife... but I'll get some info together (hopefully in a understandable way) and get back to you.

Really appreciate your help!

M