GIDForums  

Go Back   GIDForums > Web Hosting Forums > Web Hosting Advertisements & Offers > Free Web Hosting
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 24-Jul-2003, 02:14
mleuntest mleuntest is offline
New Member
 
Join Date: Jul 2003
Posts: 1
mleuntest is an unknown quantity at this point
Angry

tripod sendmail


i have spent ten hours to work out how to use sendemail in tripod, but i still can't work it out. i have follow the readme file, and it only creat a mail file in the cgi-bin file, but emails are not sending out.. could anyone give me a hint to work it out, or post a woking simple example please....

thanks

followings are what i've put in the file:

#--------------------------------
#sendingmail.pl
#---------------------------------------------

#!/usr/bin/perl
require 5.001;

require TripodMail;

$header = "header.html";
$footer = "footer.html";
$mailprogram = "sendMail";
$returnpage = "/";
$youremail = "address\@msn.com";
$csvfilename = "orders.csv";
$csvquote = "\"\"";
$mode = "BOTH";

require TripodMail;
$MAIL = new TripodMail;
$mail_template = "ff.txt";
%variables = ('email' => $youremail,
'name' => 'billy',
'number' => '2');
$MAIL->sendMail($mail_template, \%variables);

print "Content-type: text/html\n\n";

print "<HTML><BODY>";
print "<h2>Thank you</h2>";
print "Thank you for your order from our online store. You will receive a confirmation email of your order ";
print "momentarily. Please contact us at $youremail if you have any questions or concerns.";
print "<P>";
print "<A HREF=\"$returnpage\" target=_top>Return Home</A>";
print "<P>";

print "</HTML></BODY>";

exit;


#--------------------------
#ff.txt
#---------------------

To: $email
From: address@msn.com

Hello $name:

con.... you are user number $number
  #2  
Old 04-Aug-2003, 12:26
nickbeee's Avatar
nickbeee nickbeee is offline
Junior Member
 
Join Date: Aug 2001
Location: Nottingham, UK
Posts: 80
nickbeee is on a distinguished road
If you want to look at a script with a working mail function get TripodYabb and have a look at the perl source

http://members.tripod.com/yabbsp1_1/

Tripod CGI is renowned for not doing what it says on the tin!
__________________
Nick B.
http://www.nowindows.net
http://www.mozilla.org
 

Recent GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I have 3 cgi scripts working in Tripod Guest Free Web Hosting 0 11-Jul-2002 14:07
Tripod UK offering PHP/MySQL! roly Free Web Hosting 15 04-May-2002 03:46
Tripod UK goes PHP. JdS Free Web Hosting 0 14-Feb-2002 13:39
Tripod CGI is NOT as bad as they say it is! roly Free Web Hosting 8 13-Feb-2002 06:58
Tripod CGI nickbeee Free Web Hosting 1 14-Oct-2001 05:00

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:47.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.