Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z wyświetleniem treści HTML na interii
Sajrox
post
Post #1





Grupa: Zarejestrowani
Postów: 254
Pomógł: 7
Dołączył: 9.10.2007
Skąd: Poznań

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


Witam serdecznie,

Spotkałem się z bardzo dziwnym problemem. Otóż wysyłając maila w firmie HTML przy pomocy PHP w interii jest problem z jego wyświetleniem. Sam kod HTML w mailu jest zbudowany według standardów, jednak interia do początku treści dokleja:

  1.  
  2.  
  3.  
  4. <html xml:lang="pl" xmlns="http://www.w3.org/1999/xhtml">;<head>        <title></title>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        </head><body> 
  5.  


oraz na koncu 

  1.  
  2. </body>
  3. </html>
  4.  
  5.  


Co skutkuje tym że zamiast obejrzeć ładnie sformatowany tekst, widzę tylko znaczniki html. 

Czy ktoś wie jak to rozwiązać??

Moj przykladowy kod wysyłany przez poczte

  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">;
  4. <html xmlns="http://www.w3.org/1999/xhtml"; lang="pl">
  5. <head>
  6. <title></title>
  7. <meta name="keywords" content="">
  8. <meta name="description" content="">
  9.  
  10. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  11. <meta http-equiv="content-language" content="pl">
  12.  
  13. <style>
  14. * {
  15. margin:0;
  16. padding:0;
  17. }
  18. html, body {
  19. background: #ffffff;
  20. font-size: 12px;
  21. font-family: Arial, Helvetica, sans-serif;
  22. color: #6c6c6c;
  23. margin: 20px;
  24. margin-top: 10px;
  25. }
  26. .h1 {
  27. color: #a02677;
  28. font-size: 15px;
  29. text-align: right;
  30. padding: 0px;
  31. margin: 0px;
  32. font-weight: bold;
  33. width: 98%;
  34. display: block;
  35. height: 22px;
  36. }
  37. .blockA {
  38. background: #ffffff;
  39. border: 1px solid #dedede;
  40. }
  41. .blockB {
  42. background: #f7f7f7;
  43. padding: 20px;
  44. border-left: 3px solid #9f1d73;
  45. margin: 1px;
  46. }
  47. </style>
  48. </head>
  49. <body>
  50. <div class="h1">Tytuł</div>
  51. <div class="blockA">
  52. <div class="blockB">
  53.  
  54. Moja treść HTML <b>test test test</b>
  55.  
  56. </div>
  57. </div>
  58. </body>
  59. </html>
  60.  
  61.  


Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 20.08.2025 - 08:30