Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML]html mail
Forum PHP.pl > Forum > Przedszkole
Cr3dO
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);
kriszna
Treść strony wysyłasz jako treść maila, a nie w nagłówku.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.