To jest wiadomość wieloczęściowa w formacie MIME.
Kod
--==Multipart_Boundary_zzz582x Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: 7bit
--==Multipart_Boundary_zzz582x Content-Type: text/html; charset="iso-8859-2"
Content-Transfer-Encoding: 7bit
<html>
<body>
<p><b>html</b></p>
</body>
</html>
--==Multipart_Boundary_zzz582x--
Content-Transfer-Encoding: 7bit
--==Multipart_Boundary_zzz582x Content-Type: text/html; charset="iso-8859-2"
Content-Transfer-Encoding: 7bit
<html>
<body>
<p><b>html</b></p>
</body>
</html>
--==Multipart_Boundary_zzz582x--
pewnie popełniłem jakąś literówkę ;/
zerknijcie na kod:
<? class mailer { public $to = "agencik@gmail.com"; public $to_full = "Temat"; public $form = "agencik@gmail.com"; public $forum_full = "Lukasz Ogan"; public $subject = "Test wiadomości"; public $random_hash = "zzz582x"; function send() { ?> MIME-Version: 1.0 Content-Type: multipart/alternative; <? ?> To jest wiadomość wieloczęściowa w formacie MIME. Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: 7bit <html> <body> <p><b>html</b></p> </body> </html> <? } } $mail = new mailer; $mail->send();