Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML]html mail
Cr3dO
post
Post #1





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 13.07.2007
Skąd: łódź

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


Hej

Jak wyslac mejla w formie pliku html ?

znalazlem kod ale niedziala :

  1. $mail_header .= "Disposition-Notification-To:\n";
  2. $mail_header .= "Return-Path:\n";
  3. $mail_header .= "Errors-To:\n";
  4. $mail_header .= "Prevent-NonDelivery-Report:\n";
  5. $mail_header .= "MIME-Version: 1.0";
  6. $mail_header .= "\nContent-Type: multipart/alternative;";
  7. $mail_header .= "\n\nThis is a multi-part message in MIME format --";
  8. $mail_header .= "\n--";
  9. $mail_header .= "\nContent-Type: text/html; charset=iso-8859-2";
  10. $mail_header .= "\nContent-Transfer-Encoding: 7bit";
  11. $mail_header .= "\n\n";
  12. $mail_header .= "\n<html><head><META HTTP-EQUIV=\"Content-type\" CONTENT=\"text/html; charset=iso-8859-2\"></head>";
  13. $mail_header .= "\n<body BGCOLOR=\"#F0F0F0\" >";
  14. $mail_header .= "\n<TABLE ALIGN=\"LEFT\" BORDER=\"2\" width=\"100%\" STYLE=\"font-family: verdana; font-size: 10pt\">";
  15. $mail_header .= "\n <tr><td colspan=\"2\">TRESC</td>";
  16. $mail_header .= "\n</table></body></html>";
  17.  
  18.  
  19. mail($_POST['to'], 'nowa', $_POST['message'], $mail_header);
Go to the top of the page
+Quote Post

Posty w temacie
- Cr3dO   [HTML]html mail   13.08.2009, 19:27:50
- - kriszna   Treść strony wysyłasz jako treść maila, a nie w na...   13.08.2009, 19:38:45


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: 15.09.2025 - 14:03