PHP Classes

Wrap header lines

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  How Can PHP Send Emai...  >  All threads  >  Wrap header lines  >  (Un) Subscribe thread alerts  
Subject:Wrap header lines
Summary:Trying to wrap lines in header
Messages:2
Author:ck miller
Date:2009-10-05 09:54:50
Update:2009-10-12 06:22:37
 

  1. Wrap header lines   Reply   Report abuse  
Picture of ck miller ck miller - 2009-10-05 09:54:50
Nice email class Manuel - Thanks for sharing your work!

Question:
I know I can wrap text in a text part of the message.
Is it possible to wrap lines in a header as well (eg. to:, cc:, bcc:)?

I've tried with

$value = $this->WrapText($value);
return($this->SetHeader($header,$value));

inside SetMultipleEncodedEmailHeader but this doesn't seem to work.

When sending via php mail() I still get on long recipient header line which is quite ugly.

  2. Re: Wrap header lines   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-10-12 06:22:37 - In reply to message 1 from ck miller
The message headers may not be explicit line breaks. However the class automatically break header lines that exceed 75 characters, as part of MIME q-encoding format.