Sample code for 30+ languages & platforms
PHP Extension

Transition from MailMan.LoadMime to Email.SetFromMimeText

Provides instructions for replacing deprecated LoadMime method calls with Email.SetFromMimeText.

Chilkat PHP Extension Downloads

PHP Extension
<?php

include("chilkat.php");

$success = false;

$mailman = new CkMailMan();

// ...
// ...

$mimeText = '....';

// ------------------------------------------------------------------------
// The LoadMime method is deprecated:

// emailObj is a CkEmail
$emailObj = $mailman->LoadMime($mimeText);
if ($mailman->get_LastMethodSuccess() == false) {
    print $mailman->lastErrorText() . "\n";
    exit;
}

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using Email.SetFromMimeText.

$email = new CkEmail();
$success = $email->SetFromMimeText($mimeText);
if ($success == false) {
    print $email->lastErrorText() . "\n";
    exit;
}


?>