Thread Email (9 answers)
Opened by fritz at 2006-09-15 17:15

pq
 2006-09-15 17:37
#69958 #69958
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
my $time = localtime;
my $mailprog = "/usr/lib/sendmail -oi -t";
open PIPE, "|$mailprog" or die $?;
print PIPE <<'EOM';
From: cron <foobar@example.org>
To: ich <foobar@example.org>
Subject: Test finished

at $time

EOM
close PIPE;
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Email