[wp-hackers] Lost Password

Denis de Bernardy denis at semiologic.com
Tue Nov 22 12:52:39 GMT 2005


Incidentally, free.fr pretty much is your marketplace in France. They
started as a free access ISP and have grown to be one of the four biggest
ISPs in the country. They are now into phone, DSL and ITV, and they have a
multi-million subscriber subscriber base. All get a free hosting account
indeed as part of their deal, and this free hosting package.

As for the mail function, it still exists -- last I tried, it would output a
'this function has been disabled' warning message. And on the top of my
head, something along the lines of the following would more likely be needed
as a replacement:

# default:

$GLOBALS['email_callback'] = 'mail';

# custom:

function custom_email($mailto, $subject, $message, $headers)
{
  # fetch emails from $mailto
  preg_match_all(pattern_email_list, $mailto, $out);
  $emails = end($out);
  
  # send emails one by one
  foreach ( $emails as $email )
  {
    return email($email, $subject, $message);
  }
}

$GLOBALS['email_callback'] = 'custom_email';

# usage:

call_user_func_array(
    $GLOBALS['email_callback'],
    array($to, $subject, $message, $headers)
    );

D.



More information about the wp-hackers mailing list