[eluser]yacman[/eluser]
With php5.3, it has a built in quoted_printable_encode and _decode method.
You can overload this easily
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter Email Class
*
* Permits email to be sent using Mail, Sendmail, or SMTP.
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @link http://ellislab.com/codeigniter/user-guide/libraries/email.html
*/
class MY_Email extends CI_Email {
/**
* Prep Quoted Printable
*
* Prepares string for Quoted-Printable Content-Transfer-Encoding
* Refer to RFC 2045 http://www.ietf.org/rfc/rfc2045.txt
*
* Checks if quoted_printable_encode is a function and will use the built
* in method in php 5.3, otherwise uses the current CI_Email version.
*
* @access protected
* @param string
* @param integer
* @return string
*/
protected function _prep_quoted_printable($str, $charlim = '')
{
if (function_exists("quoted_printable_encode")) {
return quoted_printable_encode($str);
} else {
return parent::_prep_quoted_printable($str,$charlim);
}
}
}