From 13dbcf876178da53509cf6af2fb579311ef93d78 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Apr 2019 18:56:06 +0200 Subject: add explicit config toggle to disable sendmail --- lib/Travelynx/Helper/Sendmail.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travelynx/Helper') diff --git a/lib/Travelynx/Helper/Sendmail.pm b/lib/Travelynx/Helper/Sendmail.pm index 19e7d05..9f19e74 100644 --- a/lib/Travelynx/Helper/Sendmail.pm +++ b/lib/Travelynx/Helper/Sendmail.pm @@ -28,7 +28,7 @@ sub custom { body => encode( 'utf-8', $body ), ); - if ( $self->{config}->{db}->{database} =~ m{travelynx_dev} ) { + if ( $self->{config}->{disabled} ) { # Do not send mail in dev mode say "sendmail to ${to}: ${subject}\n\n${body}"; -- cgit v1.2.3