ref : http://php.net/manual/en/function.mail.php



1. Insert header data in email

$headers = "From: kim@example.com\n"
$headers .= "Reply-To: john@example.com";
$headers .= "MIME-Version: 1.0\n";
$headers .= 'Content-type: text/html; charset=UTF-8\n";
$headers .= 'Content-Transfer-Encoding: 8bit\n";


2. convert email subject using base64_encode


$subject = "=?utf-8?B?".base64_encode($subject)."?=\n";



3. call mail function


mail($to, $subject, $body, $headers)

728x90

'Programming' 카테고리의 다른 글

PHP에서 Form값 전달받기  (0) 2009.12.14

+ Recent posts