]> git.proxmox.com Git - pmg-api.git/blame - PMG/SMTPPrinter.pm
api apt/versions: add some missing packages
[pmg-api.git] / PMG / SMTPPrinter.pm
CommitLineData
758c7b6b
DM
1package PMG::SMTPPrinter;
2
3use strict;
4use warnings;
5
6sub new {
7 my ($class, $smtp) = @_;
8
9 my $self = { smtp => $smtp };
10
11 return bless $self;
12}
13
14sub print {
15 my ($self, $line) = @_;
16
17 $self->{smtp}->datasend ($line);
18}
19
201;