I have the following code which works when i put it in any blank php page,but when i try to put the code in another php page where i already have some codes in it, i get the error:
ERRNO: 8192 TEXT: Assigning the return value of new by reference is deprecated LOCATION: C:\xampp\php\PEAR\Mail.php, line 154,
include('Mail.php');
$mail = Mail::factory("mail");
$headers = array("From"=>"[email protected]", "Subject"=>"Your order has been placed ");
$body = "lol";
$mail->send("[email protected]", $headers, $body);