1
package Swatch::SendMail;
10
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
16
$VERSION = '20031118';
18
################################################################
21
my $login = (getpwuid($<))[0];
24
'ADDRESSES' => $login,
25
'FROM' => "$login\@$host",
26
'SUBJECT' => 'Message from Swatch',
30
(my $to_line = $opts{'ADDRESSES'}) =~ s/:/,/g;
32
my %mail = ( To => $to_line,
34
Subject => $opts{SUBJECT},
35
Message => $opts{MESSAGE},
37
sendmail(%mail) or warn $Mail::Sendmail::error;
41
################################################################
46
Swatch::SendMail - Swatch interface to the Mail::Sendmail module
58
E. Todd Atkins, todd.atkins@stanfordalumni.org