FP with TripodMail.pm

  • Thread starter Thread starter AGreenberg
  • Start date Start date
A

AGreenberg

How on earth do I get Tripod's emailing script to work?
All I want to do is have a form send out an email. Tripod doesn't let you have
access to their sendmail folder so they give you a wrapper script called
TripodMail.pm but there's no really good howto that I can find.
I'm using FP2003 but I tried and failed with 03 and 98 utterly.

This is what I did with the form...
--------------------------------------------------------------------------
<FORM METHOD="POST" ACTION="http://www.blisolutions.biz/cgi-bin/TripodMail.pm">
------------------------------------------------------------------------
........
and this is what have in TripodMail.pm, right out of their tutorial.
--------------------------------------------------------------------------
---------
require TripodMail;
$MAIL = new TripodMail;
$mail_template = "http://www.blisolutions.biz/cgi-bin/_mail.txt";
%variables = ('email' => '(e-mail address removed)',
'name' => 'Alex',
'number' => '2');
$MAIL->sendMail($mail_template, \%variables);
--------------------------------------------------------------------------
------
and here is _mail.txt....
--------------------------------------------------------------------------
------
To: $email
From: (e-mail address removed)
Subject: Response from Website

Hello $name,
Thank you for your comments. We will be contacting you shortly.
--------------------------------------------------------------------------
------
Thank you for any help you can give me!


Best Regards,


Alex

Alex Greenberg - Clarinetist with Nefesh
http://www.NefeshBand.com
 
Disclaimer - I have never used Tripod or any of their scripts.
The following is based on my knowledge of Perl scripts.

TripodMail.pm is a library file, not a script.
You will have to write a perl script which calls TripodMail and use that as
the action for the form.

<form method="post"
action="http://www.blisolutions.biz/cgi-bin/mymailscript.pl">

In the script (named mymailscript.pl in the <form> tag above you would have
(at least) the following:

#!/path/to/perl -w
require TripodMail;
$MAIL = new TripodMail;
$mail_template = "http://www.blisolutions.biz/cgi-bin/_mail.txt";
%variables = ('email'=>'(e-mail address removed)', 'name' =>'Alex','number' =>
'2');
$MAIL->sendMail($mail_template, \%variables);

The first line must be edited according to Tripods instructions. This is
the location of the Perl executable on the server.

If you can post the (publicly accessible) URL of the tutorial, I may be able
to embellish these notes further.
 
Back
Top