*
* @return Mail backend
*/
-
function mail_backend()
{
static $backend = null;
*
* @return boolean success flag
*/
-
function mail_send($recipients, $headers, $body)
{
// XXX: use Mail_Queue... maybe
*
* @return string mail domain, suitable for making email addresses.
*/
-
function mail_domain()
{
$maildomain = common_config('mail', 'domain');
*
* @return string notify from address
*/
-
function mail_notify_from()
{
$notifyfrom = common_config('mail', 'notifyfrom');
*
* @return boolean success flag
*/
-
function mail_to_user(&$user, $subject, $body, $headers=array(), $address=null)
{
if (!$address) {
*
* @return success flag
*/
-
-function mail_confirm_address($user, $code, $nickname, $address)
+function mail_confirm_address($user, $code, $nickname, $address, $url=null)
{
+ if (empty($url)) {
+ $url = common_local_url('confirmaddress', array('code' => $code));
+ }
+
// TRANS: Subject for address confirmation email.
$subject = _('Email address confirmation');
"Thanks for your time, \n%2\$s\n"),
$nickname,
common_config('site', 'name'),
- common_local_url('confirmaddress', array('code' => $code)));
+ $url);
+
$headers = array();
return mail_to_user($user, $subject, $body, $headers, $address);
*
* @return void
*/
-
function mail_subscribe_notify($listenee, $listener)
{
$other = $listener->getProfile();
*
* @return void
*/
-
function mail_subscribe_notify_profile($listenee, $other)
{
if ($other->hasRight(Right::EMAILONSUBSCRIBE) &&
common_switch_locale($to->language);
// TRANS: Subject for 'nudge' notification email.
// TRANS: %s is the nudging user.
- $subject = sprintf(_('You\'ve been nudged by %s'), $from->nickname);
+ $subject = sprintf(_('You have been nudged by %s'), $from->nickname);
$from_profile = $from->getProfile();