You are here: Re: mail() to Outlook, no carriage returns « PHP Programming Language « IT news, forums, messages
Re: mail() to Outlook, no carriage returns

Posted by Tyno Gendo on 06/14/07 09:13

Tyno Gendo wrote:
> I'm sending normal text email, but in Outlook all the carriage returns
> are ignored. The text comes from MySQL database, and I've tried
>
> str_replace("\r", "\r\n", $dr['email_template']);
>
> I also tried sending header Content-type: text/plain but still no luck,
> still the email comes through as one big line.
>
> I'm sure this must be a common thing but I can't immediately find an
> answer through Google.
>
> Please can anyone help?
>
> I'm using the standard mail() command to send.

Sorry, I meant str_replace( "\n", "\r\n", $dr['email_template']);

Doesn't work.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация