Loading lib/Travelynx.pm +2 −1 Original line number Diff line number Diff line Loading @@ -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} // {} ) ); } ); Loading lib/Travelynx/Helper/Sendmail.pm +1 −1 Original line number Diff line number Diff line Loading @@ -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}"; Loading Loading
lib/Travelynx.pm +2 −1 Original line number Diff line number Diff line Loading @@ -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} // {} ) ); } ); Loading
lib/Travelynx/Helper/Sendmail.pm +1 −1 Original line number Diff line number Diff line Loading @@ -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}"; Loading