9 |
use lib qw( /data/libs/nfo/perl/libs ); |
use lib qw( /data/libs/nfo/perl/libs ); |
10 |
use org::netfrag::shortcuts qw( now ); |
use org::netfrag::shortcuts qw( now ); |
11 |
|
|
12 |
my $to = 'joko@netfrag.org'; |
my $now = now(); |
13 |
my $subject = "Testmail - generated on " . now(); |
|
14 |
|
#my $to = 'joko@netfrag.org'; |
15 |
|
my $to = 'links-computing@netfrag.org'; |
16 |
|
my $subject = |
17 |
|
"This is just a test mail. Please ignore it." . "\n" . |
18 |
|
"-- generated $now" . "\n"; |
19 |
my $data = "$subject"; |
my $data = "$subject"; |
20 |
|
|
21 |
my $msg = MIME::Lite->new( |
my $msg = MIME::Lite->new( |
22 |
# From => 'test@localhost', |
# From => 'test@localhost', |
23 |
From => 'test', |
# From => 'test', |
24 |
|
From => 'test@netfrag.org', |
25 |
To => "$to", |
To => "$to", |
26 |
Subject => "$subject", |
Subject => "$subject", |
27 |
Data => "$data\n", |
Data => "$data\n", |