diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-01-09 22:55:08 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-01-13 16:28:50 +0000 |
commit | 676181084d88b0ec94d42521162b4571cb0c0552 (patch) | |
tree | 744979e676295aa7daf2de3aa03818b1f6419fb6 /perllib/FixMyStreet/SendReport.pm | |
parent | 4ae8d597a80d91084dcdcd999d480f41a57c70d1 (diff) |
Use same handling for cron and non-cron email.
This means that e.g. SMTP authentication is used when set up by all
emails, not just non-cron ones. Fixes #988.
Diffstat (limited to 'perllib/FixMyStreet/SendReport.pm')
-rw-r--r-- | perllib/FixMyStreet/SendReport.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/SendReport.pm b/perllib/FixMyStreet/SendReport.pm index 5087c7ead..40e76ef72 100644 --- a/perllib/FixMyStreet/SendReport.pm +++ b/perllib/FixMyStreet/SendReport.pm @@ -10,6 +10,7 @@ use Module::Pluggable has 'body_config' => ( is => 'rw', isa => 'HashRef', default => sub { {} } ); has 'bodies' => ( is => 'rw', isa => 'ArrayRef', default => sub { [] } ); has 'to' => ( is => 'rw', isa => 'ArrayRef', default => sub { [] } ); +has 'bcc' => ( is => 'rw', isa => 'ArrayRef', default => sub { [] } ); has 'success' => ( is => 'rw', isa => 'Bool', default => 0 ); has 'error' => ( is => 'rw', isa => 'Str', default => '' ); has 'unconfirmed_counts' => ( 'is' => 'rw', isa => 'HashRef', default => sub { {} } ); @@ -44,6 +45,7 @@ sub reset { $self->bodies( [] ); $self->body_config( {} ); $self->to( [] ); + $self->bcc( [] ); } sub add_body { |