1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use warnings;
use strict;
use MIME::Lite;
my $msg;
$msg = MIME::Lite->new(
From => 'testmail@testmailsystem',
To => 'benni05@t-online.de',
#Cc => 'some@other.com, some@more.com',
Subject => 'TESTMAIL',
Type => 'TEXT',
Data => "TEST"
);
$msg->send; #default is to use "sendmail".
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use warnings;
use strict;
use MIME::Lite;
my $msg;
$msg = MIME::Lite->new(
From => 'testmail@testmailsystem',
To => 'benni05@t-online.de',
#Cc => 'some@other.com, some@more.com',
Subject => 'TESTMAIL',
Type => 'TEXT',
Data => "TEST"
);
$msg->send("sendmail", "/usr/lib/sendmail -t -oi -oem", Debug => 1);
1
2
3
4
5
6
7
$ /usr/lib/sendmail -t -oi -oem
To: email1
From: email2
Subject: testmail
test
CTRL-D
QuoteDa kann ich dir gleich sagen, dass der Server das nicht annimmt.Code: (dl )From => 'testmail@testmailsystem',