不太懂MIME的用法

edited 十月 2013 in PHP新手區
$semiRnd =md5(time());
$mime_boundary = "==Mutipart_Boundary_x{$semiRnd}x";
$headers .= "boundary=\"{$mime_boundary}\"";

不懂藍色地方的寫法,而且怎會弄成字串的形式??
然後...

$backup=$msg;
$msg ="This is a muti-part message in ";
$msg .="MIME format.\n\n--{$mime_boundary}\n";
$msg .="Content-Type: text/plain; ";
$msg .="Charset=\"Big5\"\n";
$msg .="Content-Transfer-Encoding: ";
$msg .="8bit\n\n".$backup."\n\n";

請問這是固定格式,一定要加的嗎?
不懂為什麼要加這麼多\n耶~

原始討論: http://twpug.net/x/modules/newbb/viewtopic.php?topic_id=4372

評論

Sign In or Register to comment.