From 485331f99d5dfdfd7f1dca60853dac292f721b55 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 20 Jul 2008 21:11:28 -0400 Subject: shorter confirmation message and web iface to confirm darcs-hash:20080721011128-84dde-0b3af6237c2c07bf7f573d9e609c19e6538c2859.gz --- lib/mail.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib') 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); +} -- cgit v1.2.3-54-g00ecf