Jemand zu Hause?Leser: 9
1 2 3 4 5 6 7 8 9 10 11 12 13
my $outlook = new Win32::OLE('Outlook.Application') or die "Could not open Outlook Application!\n"; my $msg = $outlook -> CreateItem(0); unless ($msg){ die "Outlook is not running, cannot send mail.\n"; } $msg->{'Subject'} = 'Test'; $msg->{'BodyFormat'} = 'olFormatHTML'; $msg->{'HTMLBody'} = $emailtext; $msg->{'To'} = 'empfaenger@domain.de'; $msg->{'Bcc'} = 'kopieempfaenger@domain.de'; $msg->{'Reply-To'} = 'reply@domain.de'; $msg->Display();
1 2
my $reply_adresses = $msg->{'ReplyRecipients'}; $reply_adresses->add('reply@domain.de');
use strict; use warnings;