Quote:
Wonder if there is any stable and straightforward code for this mod ?
|
I am successfully loading the 'sendtofriend.php' after implementing the appropriate fixes, but am receiving the following error when submitting the information on the sendtofriend page:
Warning: Failed to Receive in c:\www\xcart\include\func.php on line 269
Warning: Cannot add header information - headers already sent by (output started at c:\www\xcart\include\func.php:269) in c:\www\xcart\customer\sendtofriend.php on line 39
I am using v3.5.1 as opposed to v3.5.0, perhaps further fixes are required for v3.5.1? or it could be something i'm doing wrong
Lines 268-272 of my include/func.php:
Code:
if (preg_match('/([^ @,;<>]+@[^ @,;<>]+)/S', $from, $m))
mail($to,$mail_subject,$mail_message,$headers, "-f".$m[1]);
else
mail($to,$mail_subject,$mail_message,$headers);
}
Lines 36-42 of customer\sendtofriend.php:
Code:
func_send_mail($contact["sendtoemail"], "mail/sendtofriend_subj.tpl", "mail/sendtofriend.tpl", $contact["email"], true);
$productid = $product_info['productid'];
header("Location: sendtofriend.php?section=sendtofriend&productid=$productid");
exit;
} else {