SPUG: MAIL::MAILER
Shamon22 at aol.com
Shamon22 at aol.com
Mon Jun 26 14:31:48 CDT 2000
Hello all! I am trying to gather information from a web form and then forward it to an email account. Here is what I have so far:
--------------------------------------------------------
#!/usr/bin/perl
use Mail::Mailer;
use CGI qw(:all);
$from = param("from");
$mailto = param("mailto");
$subject = param("subject");
$body = param("text");
$mailer = Mail::Mailer->new("sendmail");
$mailer->open({ From => $from,
To => $mailto,
Subject => $subject
})
or die "Can't open: $!\n";
print $mailer $body;
$mailer->close();
--------------------------------------------------------
HELP! 8-)
-Garrett
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
For Subscriptions, Email to majordomo at pm.org: ACTION spug-list EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email address
More information about the spug-list
mailing list