summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-13 17:09:10 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-13 17:09:10 +0200
commitee53b8f37e8b87ae27bd04086f9a1c04922af33e (patch)
treea41fa2402f325fe00493315549124a98233e6037 /lib/Travelynx.pm
parent6dc92bd88a78d4ab427af407d838d011c52456e2 (diff)
Pass config to sendmail helper
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 02f5f1b..0600494 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -581,7 +581,10 @@ qq{select * from pending_mails where email = ? and num_tries > 1;}
);
$self->helper(
- sendmail => sub { state $sendmail = Travelynx::Helper::Sendmail->new; }
+ sendmail => sub {
+ state $sendmail
+ = Travelynx::Helper::Sendmail->new( config => $self->config );
+ }
);
$self->helper(