Thread Frage zur Benutzung des Packages MIME::Lite (26 answers)
Opened by Duff at 2007-10-18 15:57

renee
 2007-10-18 16:37
#101027 #101027
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
1.) In Deinem Skript:
MIME::Lite->quiet(0);

2.)
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use strict;
use warnings;

my $sendmail_path = '/usr/sbin/sendmail'; # or whatever the path to sendmail is
my $to = 'test@test.example'; # your own mail address
my $from = 'test2@test.example';
my $subject = 'Test';
my $body = 'Testnachricht';

open MAIL, "| $sendmail_path -oi -t" or die $!;
print MAIL qq~To: $to
From: $from
Subject: $subject

$body~;
close MAIL;
(ungetestet)
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Frage zur Benutzung des Packages MIME::Lite