Sending mixed-type messages with PEAR::Mail_Mime

setTXTBody($text);
    $message->setHTMLBody($html);
    $body = $message->get();
    $extraheaders = array("From"=>"[email protected]", "Subject"=>"My Subject 7");
    $headers = $message->headers($extraheaders);

    $mail = Mail::factory("mail");
    $mail->send("[email protected]", $headers, $body);
?>

Sending mixed-type messages with PEAR::Mail_Mime

It's only fair to share...Tweet about this on Twitter
Twitter
Share on Facebook
Facebook
Email this to someone
email
Share on Google+
Google+
This entry was posted in PHP/MySQL and tagged , , , , . Bookmark the permalink.