Welcome Guest, Not a member yet? Register   Sign In
french email subject lines not working
#4

[eluser]Riley123[/eluser]
ok found a good post here

http://php.net/manual/en/function.imap-8bit.php


comment this in email class;

//$subject = $this->_prep_q_encoding($subject);


use this instead. Also use the function i posted earlier to take care of the entities.

$subject = str_replace(" ", "_", trim($subject)) ;
// We need to delete "=\r\n" produced by imap_8bit() and replace '?'
$subject = str_replace("?", "=3F", str_replace("=\r\n", "", imap_8bit($subject))) ;
// Now we split by \r\n but with encoding text "=?ISO ..."
$subject = str_replace("\r\n", "?=\r\n =?ISO-8859-2?Q?", chunk_split($subject, 55)) ;
// We also have to remove last unneeded encoding text :
$subject = "=?ISO-8859-2?Q?" . substr($subject, 0, strlen($subject)-20) . "?=" ;


Messages In This Thread
french email subject lines not working - by El Forum - 08-05-2011, 07:01 PM
french email subject lines not working - by El Forum - 08-06-2011, 08:16 AM
french email subject lines not working - by El Forum - 08-06-2011, 09:05 AM
french email subject lines not working - by El Forum - 08-06-2011, 12:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB