aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-03-12 14:44:35 +0000
committerMatthew Somerville <matthew@mysociety.org>2014-03-12 15:05:21 +0000
commit4a1bbf55e93227cb42e81784277884b038cf9bca (patch)
tree51dfd25a371a2588661a261244b731d32182ef48 /perllib/FixMyStreet/App.pm
parent39509ed66694bd055f693280c23d1decec82173d (diff)
Use config's EMAIL_DOMAIN in cron email Message-ID.
Rather than hardcoded mysociety.org.
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r--perllib/FixMyStreet/App.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 4f70d2c68..2e2bf3890 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -352,8 +352,8 @@ sub send_email_cron {
return 1 if $c->is_abuser( $env_to );
- $params->{'Message-ID'} = sprintf('<fms-cron-%s-%s@mysociety.org>', time(),
- unpack('h*', random_bytes(5, 1))
+ $params->{'Message-ID'} = sprintf('<fms-cron-%s-%s@%s>', time(),
+ unpack('h*', random_bytes(5, 1)), FixMyStreet->config('EMAIL_DOMAIN')
);
$params->{_parameters_}->{signature} = '';