Hi
We did have huge problems converting Outlook mail into txt with the original code.
We did find a class from (http://www.chuggnutt.com/html2text.php) that did the trick.
We modified class.mailfetch.php the following way:
1. Upload the class.html2text.inc to the /include folder
2. Make the following changes to the class.mailfetch.php
require_once(INCLUDE_DIR.'class.mailparse.php');
require_once(INCLUDE_DIR.'class.ticket.php');
require_once(INCLUDE_DIR.'class.dept.php');
add
require_once(INCLUDE_DIR.'class.html2text.inc');
Change the function getBody to
function getBody($mid) {
$body ='';
if(!($body = $this->getpart($mid,'TEXT/PLAIN',$this->charset))) {
if(($body = $this->getPart($mid,'TEXT/HTML',$this->charset))) {
$h2t =& new html2text($body);
$body = $h2t->get_text();
}
}
return $body;
}
We hope that this could help others with the same problem.
Regards
Gert Kaae Hansen
Kjaerulff1.com