aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/EmailSend.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-28 15:34:28 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-28 15:34:28 +0100
commit2e94d363be99e83a24ed7b14c6dd00480b9afc93 (patch)
treef341fbdb15dc9f0c58b8d276cf267bdc8452e6fb /perllib/FixMyStreet/EmailSend.pm
parentb2f20914e30b0dfa0dbb689bcf02537f869f9f79 (diff)
Wrapper around Email::Send::SMTP to set sender.
Diffstat (limited to 'perllib/FixMyStreet/EmailSend.pm')
-rw-r--r--perllib/FixMyStreet/EmailSend.pm12
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;