aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Email.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2015-08-19 12:41:27 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2015-08-19 16:51:07 +0100
commitd9f5d6805f8d897e81e00208ab138bada05f8e9d (patch)
tree050c4fc094efc681a2b222a1a449775abc4812c0 /perllib/FixMyStreet/Email.pm
parent36d8eba063fe14a153b7f378fef5853725943c37 (diff)
Test for DMARC when sending report email.
Diffstat (limited to 'perllib/FixMyStreet/Email.pm')
-rw-r--r--perllib/FixMyStreet/Email.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Email.pm b/perllib/FixMyStreet/Email.pm
new file mode 100644
index 000000000..4a2784787
--- /dev/null
+++ b/perllib/FixMyStreet/Email.pm
@@ -0,0 +1,12 @@
+package FixMyStreet::Email;
+
+use Utils::Email;
+use FixMyStreet;
+
+sub test_dmarc {
+ my $email = shift;
+ return if FixMyStreet->test_mode;
+ return Utils::Email::test_dmarc($email);
+}
+
+1;