log.pl
changeset 16 bb1b17fee8c3
parent 14 744cb8934861
child 19 3a86e78a18b1
child 21 2404b9e58749
equal deleted inserted replaced
14:744cb8934861 16:bb1b17fee8c3
   220 	    $subject =~ s/^\s*\S\s//;	# cut the "itemizer"
   220 	    $subject =~ s/^\s*\S\s//;	# cut the "itemizer"
   221 	    $subject = encode_qp("Service [". hostname(). "]: $subject\n");
   221 	    $subject = encode_qp("Service [". hostname(). "]: $subject\n");
   222 	    $subject =~ s/\n(.)/\n\t$1/g;
   222 	    $subject =~ s/\n(.)/\n\t$1/g;
   223 
   223 
   224 	    $mailer->open({
   224 	    $mailer->open({
       
   225 		"Content-Type" => "text/plain; charset=utf-8",
       
   226 		"Content-Transfer-Encoding" => "8bit",
   225 		"To" => $mailto,
   227 		"To" => $mailto,
   226 		"Subject" => $subject});
   228 		"Subject" => $subject});
   227 	    print $mailer $head, "\n", $text;
   229 	    print $mailer $head, "\n", $text;
   228 	    close $mailer;
   230 	    close $mailer;
   229 	    print STDERR "Mail sent (to $mailto).\n";
   231 	    print STDERR "Mail sent (to $mailto).\n";