aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-questionnaires
diff options
context:
space:
mode:
authorlouise <louise>2009-09-10 13:03:37 +0000
committerlouise <louise>2009-09-10 13:03:37 +0000
commitb5c0d7a22f69622b90342daf6bf952704e182df1 (patch)
treeb00a995ecc9ca040883dc0734f6fa5241ee26d6c /bin/send-questionnaires
parentcc62610f3acf347771d31ad2b017378f26be530d (diff)
Allow cobrand to set contact email and base url in questionnaires
Diffstat (limited to 'bin/send-questionnaires')
-rwxr-xr-xbin/send-questionnaires8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/send-questionnaires b/bin/send-questionnaires
index eee99ff20..9390360d8 100755
--- a/bin/send-questionnaires
+++ b/bin/send-questionnaires
@@ -6,7 +6,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: send-questionnaires,v 1.15 2009-09-10 10:04:18 matthew Exp $
+# $Id: send-questionnaires,v 1.16 2009-09-10 13:03:37 louise Exp $
use strict;
require 5.8.0;
@@ -78,16 +78,16 @@ foreach my $row (@$unsent) {
dbh()->do("update problem set send_questionnaire = 'f' where id=?", {}, $row->{id});
my $token = mySociety::AuthToken::store('questionnaire', $id);
- $h{url} = mySociety::Config::get('BASE_URL') . '/Q/' . $token;
+ $h{url} = Cobrand::base_url($cobrand) . '/Q/' . $token;
- my $sender = mySociety::Config::get('CONTACT_EMAIL');
+ my $sender = Cobrand::contact_email($cobrand);
$sender =~ s/team/fms-DO-NOT-REPLY/;
$template = _($template);
my $email = mySociety::Locale::in_gb_locale { mySociety::Email::construct_email({
_template_ => $template,
_parameters_ => \%h,
To => [ [ $row->{email}, $row->{name} ] ],
- From => [ $sender, mySociety::Config::get('CONTACT_NAME') ],
+ From => [ $sender, _(mySociety::Config::get('CONTACT_NAME')) ],
'Message-ID' => sprintf('<ques-%s-%s@mysociety.org>', time(), unpack('h*', random_bytes(5, 1))),
}) };