/[cvs]/nfo/perl/scripts/dispatchmail/bin/buildmail
ViewVC logotype

Contents of /nfo/perl/scripts/dispatchmail/bin/buildmail

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Wed Jan 22 17:50:17 2003 UTC (21 years, 5 months ago) by root
Branch: MAIN
Changes since 1.1: +10 -2 lines
+ enhanced - now using 'now' to include a timestamp to subject

1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5
6
7 use MIME::Lite;
8
9 use lib qw( /data/libs/nfo/perl/libs );
10 use org::netfrag::shortcuts qw( now );
11
12 my $to = 'joko@netfrag.org';
13 my $subject = "Testmail - generated on " . now();
14 my $data = "$subject";
15
16 my $msg = MIME::Lite->new(
17 # From => 'test@localhost',
18 From => 'test',
19 To => "$to",
20 Subject => "$subject",
21 Data => "$data\n",
22 );
23 my $str = $msg->as_string;
24
25 print $str;
26
27 1;
28

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed