I have a web form presently with 5 inputs which need to pass (print to a web page) values after submit AND send an email (back to me).
The script I am using is:
#!/usr/bin/perl -wT
use strict;
use CGI ':standard';
my ($email_address, $reminder, $to, $from, $subject);
print "Content-type: text/html \n\n";
$to = param ('to');
$from = param ('from');
$subject = param ('subject');
$email_address = param ('email_address');
$reminder = param ('reminder');
print "$reminder\n";
print "$to\n";
print "$email_address\n";
print "$subject\n";
print "$from\n";
open (MAIL, "|usr/lib/sendmail -t") || Error ('open', 'mail program');
print MAIL "To: $to \nFrom: $from\n";
print MAIL "Subject: $subject\n";
print MAIL "$reminder\n";
print MAIL "$email_address\n";
close (MAIL);
Here's what I know:
1. The data does successful print upon submission. If you'd like to see go to http://joyofcode.com/remind_me.html (use id is bud and password is 050553 -- the site is under development but look around).
2. The location of sendmail is correct.
After that, I don't know much. I am real new in trying to teach myself PERL so if you can help -- and that would be greatly appreciated -- say it so I newbie would understand.
BTW -- I saw at another post in this Forum -- http://www.gossamer-threads.com/...confirmation_P53039/ someting that I thought was right on topic for me but I did not understand the solution.
Thanks so much!!
Bud
==============================
Bud Kraus
Your Friendly Instructor
Introduction To XHTML And CSS - The Online Workshop Teaching People How To Make Web Pages
http://www.joyofcode.com
973 235 1452
IM - accessbud
The script I am using is:
#!/usr/bin/perl -wT
use strict;
use CGI ':standard';
my ($email_address, $reminder, $to, $from, $subject);
print "Content-type: text/html \n\n";
$to = param ('to');
$from = param ('from');
$subject = param ('subject');
$email_address = param ('email_address');
$reminder = param ('reminder');
print "$reminder\n";
print "$to\n";
print "$email_address\n";
print "$subject\n";
print "$from\n";
open (MAIL, "|usr/lib/sendmail -t") || Error ('open', 'mail program');
print MAIL "To: $to \nFrom: $from\n";
print MAIL "Subject: $subject\n";
print MAIL "$reminder\n";
print MAIL "$email_address\n";
close (MAIL);
Here's what I know:
1. The data does successful print upon submission. If you'd like to see go to http://joyofcode.com/remind_me.html (use id is bud and password is 050553 -- the site is under development but look around).
2. The location of sendmail is correct.
After that, I don't know much. I am real new in trying to teach myself PERL so if you can help -- and that would be greatly appreciated -- say it so I newbie would understand.
BTW -- I saw at another post in this Forum -- http://www.gossamer-threads.com/...confirmation_P53039/ someting that I thought was right on topic for me but I did not understand the solution.
Thanks so much!!
Bud
==============================
Bud Kraus
Your Friendly Instructor
Introduction To XHTML And CSS - The Online Workshop Teaching People How To Make Web Pages
http://www.joyofcode.com
973 235 1452
IM - accessbud