/[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.5 - (show annotations)
Sun Nov 7 03:12:31 2004 UTC (19 years, 8 months ago) by bd
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
U modified namespace of helper modules

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 shortcuts qw( now );
11
12 my $now = now();
13
14 #my $to = 'joko@netfrag.org';
15 my $to = 'test@netfrag.org';
16
17 my $subject =
18 "This is just a test mail. Please ignore it." . "\n" .
19 "-- generated $now" . "\n";
20 my $data = "$subject";
21
22 my $msg = MIME::Lite->new(
23 # From => 'test@localhost',
24 # From => 'test',
25 From => 'test@netfrag.org',
26 To => "$to",
27 Subject => "$subject",
28 Data => "$data\n",
29 );
30 my $str = $msg->as_string;
31
32 print $str;
33
34 1;
35

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