In the latest phpmailer example file, there's the following line:
$body = eregi_replace("[\]",'',$body);
As I'm not really good in regular expressions, I can't figure out what the above does and whether I need to use it when I write my own block of data ($body
). Could anyone help me figure this out?
EDIT
I really copied it properly. Here is a whole chunk of code from the original phpmailer example file, completely untouched:
require_once('../class.phpmailer.php');
$mail = new PHPMailer(); // defaults to using php "mail()"
$body = file_get_contents('contents.html');
$body = eregi_replace("[\]",'',$body);
$mail->AddReplyTo("name@yourdomain.com","First Last");
$mail->SetFrom('name@yourdomain.com', 'First Last');