diff options
author | Joe Siltberg <git@joesiltberg.se> | 2020-03-26 09:22:56 +0100 |
---|---|---|
committer | Joe Siltberg <git@joesiltberg.se> | 2020-03-26 09:35:34 +0100 |
commit | fca6dd25ace392da54fa0ff1ac23dff05279fc9a (patch) | |
tree | f1a25b75dc2bc69b291320dedb5e714a4a409982 /perllib/FixMyStreet/Script/Inactive.pm | |
parent | 42068a3d0a656b66ba5cbe4712eb8da0d09386da (diff) |
Fixes the To header when sending emails about inactive accounts.
Without the brackets the user's name was interpreted as a separate
recipient.
Fixes #2935
Diffstat (limited to 'perllib/FixMyStreet/Script/Inactive.pm')
-rw-r--r-- | perllib/FixMyStreet/Script/Inactive.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Script/Inactive.pm b/perllib/FixMyStreet/Script/Inactive.pm index e09417648..8dd524ce1 100644 --- a/perllib/FixMyStreet/Script/Inactive.pm +++ b/perllib/FixMyStreet/Script/Inactive.pm @@ -191,7 +191,7 @@ sub email_inactive_users { user => $user, url => $self->base_cobrand->base_url_with_lang . '/my', }, - { To => [ $user->email, $user->name ] }, + { To => [ [ $user->email, $user->name ] ] }, undef, 0, $self->base_cobrand, ); |