diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-05-28 16:07:57 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-05-28 16:07:57 +0100 |
commit | 959012b397c40638eaa62cd911f416f605043330 (patch) | |
tree | 6fcfd0325d02f89c12a83ceaea39966dfa3b454d /perllib/FixMyStreet/EmailSend.pm | |
parent | c86fb4cfa6fdf62c5d0ba968b6fda7eb46c3d027 (diff) | |
parent | 2e94d363be99e83a24ed7b14c6dd00480b9afc93 (diff) |
Merge branch 'bromley'
Diffstat (limited to 'perllib/FixMyStreet/EmailSend.pm')
-rw-r--r-- | perllib/FixMyStreet/EmailSend.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/EmailSend.pm b/perllib/FixMyStreet/EmailSend.pm new file mode 100644 index 000000000..61d8a70c2 --- /dev/null +++ b/perllib/FixMyStreet/EmailSend.pm @@ -0,0 +1,12 @@ +package FixMyStreet::EmailSend; +use base Email::Send::SMTP; + +sub get_env_sender { + # Should really use cobrand's contact_email function, but not sure how + # best to access that from in here. + my $sender = FixMyStreet->config('CONTACT_EMAIL'); + $sender =~ s/team/fms-DO-NOT-REPLY/; + return $sender; +} + +1; |