-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bexley][WW] Waste report emails sent to client are from council no-r…
…eply
- Loading branch information
1 parent
068c479
commit fba2cd5
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,6 @@ sub build_recipient_list { | |
|
||
sub get_template { | ||
my ( $self, $row ) = @_; | ||
|
||
return 'submit.txt'; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package FixMyStreet::SendReport::Email::Bexley; | ||
|
||
use Moo; | ||
|
||
BEGIN { extends 'FixMyStreet::SendReport::Email'; } | ||
|
||
has use_verp => ( is => 'ro', default => 0 ); | ||
|
||
=head2 send_from | ||
Waste emails come from council | ||
=cut | ||
|
||
sub send_from { | ||
my ( $self, $row ) = @_; | ||
|
||
if ( $row->cobrand_data eq 'waste' ) { | ||
my $cobrand = $row->get_cobrand_logged; | ||
return [ $cobrand->do_not_reply_email, $cobrand->council_name ]; | ||
} | ||
|
||
$self->SUPER::send_from($row); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters