summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 234f1b8..6bdc133 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -12,6 +12,7 @@ use List::Util qw(first);
use List::MoreUtils qw(after_incl before_incl);
use Travel::Status::DE::IRIS;
use Travel::Status::DE::IRIS::Stations;
+use Travelynx::Helper::Sendmail;
our $VERSION = qx{git describe --dirty} || 'experimental';
@@ -492,6 +493,8 @@ qq{select * from pending_mails where email = ? and num_tries > 1;}
},
);
+ $self->helper(sendmail => sub { state $sendmail = Travelynx::Helper::Sendmail->new; });
+
$self->helper(
'get_departures' => sub {
my ( $self, $station, $lookbehind ) = @_;