You are here: Re: Mail With Attachment Problem « PHP Language « IT news, forums, messages
Re: Mail With Attachment Problem

Posted by Ric on 12/14/06 08:05

Michael Fesser schrieb:
> .oO(Ric)
>
>> Mail standard is only "\r"
>
> Mail standard is "\r\n" (RFC 2822).
Uuups you are right!
>
>> some email clients don't care if you send
>> \r\n but lots of providers and apps do and then the mail gets broken.
>
> It's a bit more complicated. What you send is not necessarily what the
> client will receive. The RFC describes the mail format as it should be
> handled by MTAs, but some of them have their own mind and may rewrite
> line endings. Sometimes all you can do is testing.
>
> The RFC-compliant way for example works on my host's server, but not on
> my own (or the other way round, can't remember), where a different MTA
> is running. Using CRLF there led to an additional character appended to
> each of my own header lines.
>


Hmmm here I need to send with \r if not some mail clients only show the
html source when they receive the autogenerated html mail, since I'm
using \r I haven't had any complaints.

>> So remove the \n from all your header tags.
>
> I would rather remove the \r. From the PHP manual:
>
> | Note: If messages are not received, try using a LF (\n) only. Some
> | poor quality Unix mail transfer agents replace LF by CRLF
> | automatically (which leads to doubling CR if CRLF is used). This
> | should be a last resort, as it does not comply with RFC 2822.
>
> Micha

 

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

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