zmajstrowałem sobie skrypcik do wysyłki maili w formacie html, generalnie gra i buczy śle aż miło jednak mam problem z wyglądem wiadomości w różnych programach do odbioru poczty...
poniżej wklejam kod maila który generuję... jeśłi ktoś wie co powinienem zmienić żeby ujednolicić wygląd w różnych czytnikach prosze o wskazanie rozwiązania smile.gif
  1. From xxx@xxx.org.pl Fri May 13 20:45:42 2005
  2. Return-Path: <lala@cos.org.pl>
  3. Delivered-To: vmail@xxx.org.pl
  4. Received: (qmail 5827 invoked by uid 30026); 13 May 2005 20:45:42 -0000
  5. Delivered-To: xxx@xxx.org.pl
  6. Received: (qmail 5808 invoked from network); 13 May 2005 20:45:42 -0000
  7. Received: from unknown (HELO localhost) (xxx@xxx.org.pl@xxx.xx.xx.xxx)
  8. by xxx.srv.xxx.pl with SMTP; 13 May 2005 20:45:42 -0000
  9. MIME-Version: 1.0
  10. From: xxxx@xxx.org.pl
  11. Subject: Testowa gazetka :)
  12. Content-Type: multipart/mixed;
  13. boundary="=_57855c79b517724a2fcf7d71a20d8c36"
  14. X-MKS-Scan: <jast> Fri, 13 May 2005 22:45:42 +0200
  15. X-MKS-Scan: <jast> Fri, 13 May 2005 22:45:42 +0200
  16.  
  17. --=_17724a2fcf7d71a20d8c36
  18. Content-Type: multipart/alternative;
  19. boundary="=_6114d0c4640f31a3f25b22"
  20.  
  21.  
  22. --=_d0c4640f31a3f25b22
  23. Content-Type: text/plain; charset="ISO-8859-1"
  24. Content-Transfer-Encoding: 7bit
  25.  
  26.  
  27. Zawartość wiadomości, poniżej obrazek.
  28.  
  29.  
  30. --=_4d0c4640f31a3f25b22
  31. Content-Type: text/html; charset="ISO-8859-1"
  32. Content-Transfer-Encoding: quoted-printable
  33.  
  34.  
  35. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  36. <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
  37. 2">
  38. <style type=3D"text/css">
  39. <!--
  40. .table {
  41. background-color: #ffffff;
  42. background-image: 99.jpg;
  43. background-repeat: repeat-y;
  44. background-position: top;
  45. height: 500px;
  46. width: 770px;
  47. font-family: Verdana, Arial, Helvetica, sans-serif;
  48. font-size: 11px;
  49. font-weight: normal;
  50. color: #000000;
  51. border-bottom-width: 1px;
  52. border-bottom-style: solid;
  53. border-bottom-color: #000000;
  54. border-top-width: 1px;
  55. border-top-style: solid;
  56. border-top-color: #000000;
  57. }
  58. body {
  59. margin: 0px;
  60. padding: 0px;
  61. }
  62. .tresc {
  63. font-family: Verdana, Arial, Helvetica, sans-serif;
  64. font-size: 11px;
  65. font-weight: normal;
  66. color: #000000;
  67. padding-top: 10px;
  68. padding-right: 45px;
  69. padding-bottom: 10px;
  70. padding-left: 85px;
  71. text-align: justify;
  72. vertical-align: top;
  73. }
  74. .naglowek {
  75. font-family: Verdana, Arial, Helvetica, sans-serif;
  76. font-size: 18px;
  77. font-weight: bold;
  78. color: #000000;
  79. }
  80. .tytul {
  81. font-family: Verdana, Arial, Helvetica, sans-serif;
  82. font-size: 14px;
  83. font-weight: bold;
  84. color: #990000;
  85. margin-top: 15px;
  86. }
  87.  
  88. -->
  89. </head>
  90. <table background=3D"99.jpg" align=3D"center" class=3D"table" border=3D"0" =
  91. cellpadding=3D"0" cellspacing=3D"0" width=3D"770">
  92. <tr>
  93. <td class=3D"tresc">
  94. Zawarto=B6=E6 wiadomo=B6ci, poni=BFej obrazek.
  95. <br>
  96. <br>
  97. <br>
  98. <img src=3D"capture.jpg">
  99. </td>
  100. </tr>
  101. </body>
  102. </html>
  103. --=_76114d0c4640f31a3f25b22--
  104.  
  105. --=_517724a2fcf7d71a20d8c36
  106. Content-Type: image/jpeg
  107. Content-Transfer-Encoding: base64
  108. Content-Disposition: attachment; filename="99.jpg"
  109. <!-- tu jest obrazek który ma w załozeniu byc tłem -->

Dodam jeszcze że poprawnie (czyli tak jakbym chciał) to wygląda to jedynie w The Bat smile.gif