note 38283 added to function.imap-8bit

From: Date: Mon, 15 Dec 2003 11:50:03 +0000
Subject: note 38283 added to function.imap-8bit
Groups: php.notes 
Request: Send a blank email to php-notes+get-61977@lists.php.net to get a copy of this message
Reading Bully's note : you can use the following to make a larger subject: <? $encoded = str_replace("=\r\n","",imap_8bit($string_to_encode)); ?> It's wrong. The header MAY NOT go over 75 chars per line. The right solution : <? $encoded = rtrim( str_replace( "\n","\n\t", imap_8bit ($string_to_encode)))."\r\n"; ?> It will add \t at the start of the encoded new lines. Mailers to see the lines after Subject: as extensions of this header. ---- Manual Page -- http://www.php.net/manual/en/function.imap-8bit.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38283 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38283&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38283&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61977) next »