You are here: Re: mime multipart shows up as attachment « PHP Programming Language « IT news, forums, messages
Re: mime multipart shows up as attachment

Posted by Der tolle Emil on 10/25/03 11:54

"Alvaro G. Vicario" <webmaster@NOSPAMdemogracia.com> schrieb im Newsbeitrag
news:q9w4vvpij2pc.18d0pew1dyx20$.dlg@40tude.net...
> *** Der tolle Emil escribi/wrote (Tue, 1 Aug 2006 13:54:28 +0200):
>> FROM: me <foo@bar.com>
>> MIME-Version: 1.0
>> Content-Type: multipart/mixed; boundary="MIME_BOUNDARY"
>
> Try: multipart/alternative
>
>> --MIME_BOUNDARY
>
> This --MIME_BOUNDARY should not be here.
>
>> Content-Type: text/plain; charset="iso-8859-1"
>> Content-Transfer-Encoding: 8bit
>>
>> This is a multi-part message in MIME format.
>> navision://client/run?etcetc
>
> This stuff is supposed to provide a hint for MIME unaware clients. It's
> not
> where you put your text only version: MIME away clients will ignore it.
>
> So you need an additional block for your plain text.
>
>>
>> --MIME_BOUNDARY
>> Content-Type: text/html; charset="iso-8859-1"
>> Content-Transfer-Encoding: 8bit
>>
>> <html><body>
>> <a href="navision://client/run?etcetc">click me</a>
>> </body></html>
>>
>> --MIME_BOUNDARY--
>
> This is a message generated by The Bat! mail client, use it as template:
>
>
> Date: Tue, 1 Aug 2006 19:48:29 +0200
> From: "Alvaro G. Vicario" <alvaro@*************>
> X-Mailer: The Bat! (v2.01.3) Personal
> Organization: http://www.demogracia.com/
> X-Priority: 3 (Normal)
> Message-ID: <1204078304.20060801194829@demogracia.com>
> To: Alvaro G Vicario <alvaro@*************>
> Subject: Mixed HTML and text
> MIME-Version: 1.0
> Content-Type: multipart/alternative;
> boundary="----------1271226D31E3D293"
>
> ------------1271226D31E3D293
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> This is the message body.
> ------------1271226D31E3D293
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 8bit
>
> <html><head>
> </head>
> <body BGCOLOR=#D2C1EC>
> This is the <b>message</b> body. </body></html>
> ------------1271226D31E3D293--
>
>
> --
> -+ http://alvaro.es - lvaro G. Vicario - Burgos, Spain
> ++ Mi sitio sobre programacin web: http://bits.demogracia.com
> +- Mi web de humor con rayos UVA: http://www.demogracia.com
> --


Thanks! That did it; I believe I tried multipart/alternative before but then
changed it back because obviously I had another error and thus thought that
it made no difference.

 

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

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