/home/mjc1/public_html/html/mtest.php


1
2
3
4
5
6
7
8
9
10
11
12
13
<?
       $headers    
=   "From: mjc1@mijinsoft.co.kr\r\n";
       
$headers   .=   "MIME-Version: 1.0\r\n";
       
$boundary   =   uniqid("HTMLDEMO");
       
$headers    .= "Content-Type: multipart/mixed; boundary = $boundary\r\n\r\n";

        
$body "--$boundary\r\n" .
             
"Content-Type: text/html; charset=ISO-8859-1\r\n" .
             
"Content-Transfer-Encoding: base64\r\n\r\n";
        
$body .= chunk_split(base64_encode("ȸ¿ø´ÔÀÇ <b>ºñ¹Ð¹øÈ£</b>´Â 1234 ÀÔ´Ï´Ù."));

        
mail"kryei1@hotmail.com" "¹ÌÁø¿¡¼­ ¾Ë·Áµå¸³´Ï´Ù."$body$headers); 
?>