![]() |
|
#1
|
|||
|
|||
tripod sendmaili 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
|
||||
|
||||
|
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 GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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