summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-20 21:11:28 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-20 21:11:28 -0400
commit485331f99d5dfdfd7f1dca60853dac292f721b55 (patch)
tree8931ae7e2f9979e3858166237b96ac6ddc99690d /lib
parent27d5118b6d94b733df38a0da38eebe074ed02eb7 (diff)
shorter confirmation message and web iface to confirm
darcs-hash:20080721011128-84dde-0b3af6237c2c07bf7f573d9e609c19e6538c2859.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/mail.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/mail.php b/lib/mail.php
index 165b28b6a..001376bea 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -189,3 +189,19 @@ function mail_send_notice($notice, $user) {
$body = $notice->content;
mail_send($sms_email, $headers, $body);
}
+
+function mail_confirm_sms($code, $nickname, $address) {
+
+ $recipients = $address;
+
+ $headers['From'] = mail_notify_from();
+ $headers['To'] = $nickname . ' <' . $address . '>';
+ $headers['Subject'] = _('SMS confirmation');
+
+ $body = "$nickname: confirm you own this number with this code:";
+ $body .= "\n\n";
+ $body .= $code;
+ $body .= "\n\n";
+
+ mail_send($recipients, $headers, $body);
+}