Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 18-07-05
Aquanuke's Avatar
ShagaaDaggaDoo
 
Join Date: Aug 2003
Location: Surrey
Posts: 1,116
Thanks: 0
Thanked 0 Times in 0 Posts
Aquanuke is an unknown quantity at this point
  PHP and email headers - max line length ?

Does anyone know how the email header should be to increase the max line length? I think it defaults to 76 chars.

So far I have this..

Code:
$headers  = "From: \"me\"<me@me.com>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\"";
mail('you@you.com', 'Hello mum', $text, $headers);
Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 18-07-05
Super Moderator
 
Join Date: Aug 2003
Posts: 2,451
Thanks: 0
Thanked 0 Times in 0 Posts
Rich is an unknown quantity at this point
As far as I know, the only hard limits in the RFCs is 1000 characters per line. 65,72 or 76 seem to be standard line lengths and I'm faily sure that some clients will wrap at these points if they find a message with long lines.

I've just tried this
Code:
$headers  = "From: \"me\"<me@me.com>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\"";
$text="1234567890 ";
$text=str_repeat($text,20);
$text.="\n----\n";
$text=str_repeat($text,20);
mail('you@you.com', 'Hello mum', $text, $headers);
and it sent the long lines to outlook without a problem.

If it's a header that you need to have longer than 65 characters then wrap it on to the next line and ensure the line starts with a space or a tab. The space or tab shows this is a continuation of the previous header, 'Received:' headers give an example of this.

Hope that helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 18-07-05
Aquanuke's Avatar
ShagaaDaggaDoo
 
Join Date: Aug 2003
Location: Surrey
Posts: 1,116
Thanks: 0
Thanked 0 Times in 0 Posts
Aquanuke is an unknown quantity at this point
Cheers Rich,

It was a client issue my end as I sent my test emails with outlook and it autowrapped.

Last edited by Aquanuke; 18-07-05 at 11:26 PM..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 19-07-05
OLBG's Avatar
aka Antony
 
Join Date: Mar 2005
Location: Bristol
Posts: 528
Thanks: 0
Thanked 0 Times in 0 Posts
OLBG is an unknown quantity at this point
just popped in to see who would possibly know the answer to something Aquanuke didnt know!

Should have guessed
__________________
Antony
Free Tipster Competition
Affiliate Program on POR - up to £2/lead
Grand National Guide
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7