Gizmo Posted August 17, 2006 Report Share Posted August 17, 2006 Sveiki, kautkā pašam šodien galva negriežās kā gribētos, kā lai uztaisu šito lietu? Karoč WEBlapā aizpilda formu - aiziet dati uz MySQL. Pēctam tos datus smukā html veidolā vaig nosūtīt uz epastu. Kā darīties? <?php $to = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> $message vietā drukājot html nosūtās kā plaintexts Link to comment Share on other sites More sharing options...
Blitz Posted August 17, 2006 Report Share Posted August 17, 2006 $headers .= 'Content-type: text/html; charset=windows-1257' . "\r\n"; Link to comment Share on other sites More sharing options...
Gizmo Posted August 17, 2006 Author Report Share Posted August 17, 2006 un kā tagad novākt šito varzu? Message-Id: <[email protected]> Date: Thu, 17 Aug 2006 16:15:26 +0300 (EEST) From: [email protected] (nobody) hello ja kas - laikam izdevās - <b>he</b>llo rādījās boldā :) Link to comment Share on other sites More sharing options...
Recommended Posts