Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] dwie wersje maila txt i html - automatyczie
pieto
post
Post #1





Grupa: Zarejestrowani
Postów: 227
Pomógł: 1
Dołączył: 12.05.2002
Skąd: gdańsk

Ostrzeżenie: (0%)
-----


Witam,
Takie pytanie: Czy jest jakis sposob aby klient poczty X odbieral wersje maila txt jesli nie obsluguje html ? by to dzialo sie automatycznie, tzn w jednym strumieniem idzie wyslac dwie wersje wiadomoscci ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
sf
post
Post #2





Grupa: Zarejestrowani
Postów: 1 597
Pomógł: 30
Dołączył: 19.02.2003
Skąd: Tychy

Ostrzeżenie: (0%)
-----


nie
Go to the top of the page
+Quote Post
NetJaro
post
Post #3





Grupa: Zarejestrowani
Postów: 475
Pomógł: 0
Dołączył: 1.04.2005
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Nie da się. Dlaczego w form. zapisywania się do subskrypcji zrób wybór, czy ktoś chce otrzymywać maila w formie txt, czy w formie HTML (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
Go to the top of the page
+Quote Post
DzikiLis
post
Post #4





Grupa: Zarejestrowani
Postów: 36
Pomógł: 0
Dołączył: 16.12.2005
Skąd: Warszawa, Kabaty

Ostrzeżenie: (0%)
-----


Cytat(NetJaro @ 2006-02-19 11:09:24)
Nie da się.

Jak nie jak tak? Zobacz ten artykuł.

Cytat
Your message must use MIME headers in order to use HTML. Sending messages with attachments is well-covered in several books and online, and the technique is similar. However, instead of sending a multipart/mixed message, you must send a multipart/alternative message. That is, the Content-type header is set to "multipart/alternative".

This alerts the client that several versions of the same message are included, and the client should pick the best version. The simplest case is to include a plain text version and an HTML version. If the client understands HTML, that version should be presented instead of the plain text version.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 00:35