diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-13 18:56:06 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-13 18:56:06 +0200 |
commit | 13dbcf876178da53509cf6af2fb579311ef93d78 (patch) | |
tree | f06b739516157ea85558c28dd8810c84f39d75e8 /lib/Travelynx.pm | |
parent | 4d413d06a37c0cefd1d99d38b10bcdf7b506d538 (diff) |
add explicit config toggle to disable sendmail
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-x | lib/Travelynx.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 0600494..8da796d 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -583,7 +583,8 @@ qq{select * from pending_mails where email = ? and num_tries > 1;} $self->helper( sendmail => sub { state $sendmail - = Travelynx::Helper::Sendmail->new( config => $self->config ); + = Travelynx::Helper::Sendmail->new( + config => ( $self->config->{mail} // {} ) ); } ); |