
Shumit Rehman - 2008-07-06 17:11:47
Hi
I am following your documentation in the Usage section but I keep getting the error message "it was added a part without a body PART". Ive no idea what I am doing wrong - ps just using text works fine.
many thanks,Shumit
here's my code:
$message="Some text";
$message_object = new email_message_class();
$message_object->SetHeader("From","me@comp.com");
$message_object->SetHeader("Subject","subject");
$message_object->SetHeader("To","you@yours.com");
$message_object->AddPlainTextPart($message_object->WrapText($message,75));
$hmtl= "<html><body><h1>Try this</h1></body></html>";
$message_object->AddHTMLPart($html);
$err=$message_object->Send();