Arek Koc - 2013-02-28 02:52:46
After a few hours I really don't know what is wrong here, the error appears on line with CreateAlternativeMultipart, the script looks very simple:
$obraz['FileName']='1.jpg';
$obraz['Content-Type']='automatic/name';
$obraz['Name']='1.jpg';
$obraz['Disposition']='inline';
$obraz['Cache']=1;
$message_object->CreateFilePart($obraz,$img);
$message_object->CreateQuotedPrintableTextPart('Alternative','',$txt);
$message_object->CreateQuotedPrintableHTMLPart('<html><head></head><body><h1>Test</h1><img src=cid:'.$message_object->GetPartContentID($img).'></body></html>','',$html);
#line 23:
$message_object->CreateAlternativeMultipart(array($txt,$html),$txtandhtml);
$message_object->CreateRelatedMultipart(array($txtandhtml,$img),$all);
$message_object->AddRelatedMultipart(array($all));
print $message_object->Send();
PHP Fatal error: Cannot pass parameter 1 by reference in htmlmail.php on line 23
Thanks for any advice :(