/[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.4 - (show annotations)
Sun Mar 23 22:21:13 2003 UTC (21 years, 3 months ago) by root
Branch: MAIN
Changes since 1.3: +2 -1 lines
changed default-testing-target-address to 'hello@netfrag.org'

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 $now = now();
13
14 #my $to = 'joko@netfrag.org';
15 my $to = 'hello@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