Tripod site doesn't allow send mail. Instead they have module TripodMail using
which mails can be sent. As they have explained I used the module and wrote
the script. Script is as follows.
# Mail Option
require TripodMail;
$MAIL = new TripodMail;
if ($mail eq '1') {
#mail to self
$mail_template1 = "./infomail.txt";
%variables1 = ('guestemail' => $FORM{'username'},
'guestname' => $FORM{'realname'},
'comment' => $FORM{'comments'},
'date' => $date,
'recipient' => $recipient);
$MAIL->sendMail($mail_template1, \%variables1);
}
if ($remote_mail eq '1' && $FORM{'username'}) {
#mail to visitor
$mail_template2 = "./thankmail.txt";
%variables2 = ('guestemail' => $FORM{'username'},
'guestname' => $FORM{'realname'},
'comment' => $FORM{'comments'},
'date' => $date,
'recipient' => $recipient);
$MAIL->sendMail($mail_template2, \%variables2);
}
This script I am using in my guest book. mail to the visitor(later part of
script works). But first part is not working.
Where I am wrong?
--
L.V.Gandhi
203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017
MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help