<?php
function send_mail($from, $to, $subject, $message)
{
if ($from == "")
{
$from = '回憶未來(lái) <
[email protected]>';//發(fā)件人地址
}
$headers = 'MIME-Version: 1.0' . "/r/n";
$headers .= 'Content-type: text/html; charset=gb2312' . "/r/n";
$headers .= 'From: ' . $from . "/r/n";
mail($to, $subject, $message, $headers);
}
?>