| 32 |
{ |
{ |
| 33 |
$recipients = $row["toemail"]; |
$recipients = $row["toemail"]; |
| 34 |
|
|
| 35 |
$headers['From'] = "\"".$row["fromname"]."\" <".$row["fromemail"].">"; |
$headers['From'] = "\"=?GB2312?B?".base64_encode($row["fromname"])."?=\" <".$row["fromemail"].">"; |
| 36 |
$headers['To'] = "\"".$row["toname"]."\" <".$row["toemail"].">"; |
$headers['To'] = "\"=?GB2312?B?".base64_encode($row["toname"])."?=\" <".$row["toemail"].">"; |
| 37 |
$headers['Subject'] = $row["subject"]; |
$headers['Subject'] = "=?GB2312?B?".base64_encode($row["subject"])."?="; |
| 38 |
|
|
| 39 |
$body = $row["body"]; |
$body = $row["body"]; |
| 40 |
|
|
| 87 |
"'$fromname','$to','$toname','$subject','$body',now())",$db_conn) |
"'$fromname','$to','$toname','$subject','$body',now())",$db_conn) |
| 88 |
or die("Add mail failed!"); |
or die("Add mail failed!"); |
| 89 |
|
|
|
send_mail_do($db_conn); |
|
| 90 |
return; |
return; |
| 91 |
} |
} |
| 92 |
|
|