in reply to 3Re: How do I send mail from a script?
in thread How do I send mail from a script?
#!/usr/bin/perl -w use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); use Mail::Mailer; my @param = qw( Title Name Position School Address Suburb State PCode Email Tel Fax Att1 Att2 Att3 Att4 Att5 Att6 Att7 Att8 Att9 Comments ); my $mailer = Mail::Mailer->new; $mailer->open({ To => 'pete@home.com', From => 'Tester@qux.com', Subject => 'results of submit', }); my $body; $body .= "$in{$_}\n" for @param; print $mailer $body; $mailer->close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
5Re: How do I send mail from a script?
by jeffa (Bishop) on Aug 12, 2003 at 01:15 UTC |