| 13 |
break; |
break; |
| 14 |
case "smtp": |
case "smtp": |
| 15 |
$params['host'] = $Mail_Server; |
$params['host'] = $Mail_Server; |
| 16 |
|
$params['port'] = $Mail_Server_Port; |
| 17 |
$params['auth'] = true; |
$params['auth'] = true; |
| 18 |
$params['username'] = $Mail_User; |
$params['username'] = $Mail_User; |
| 19 |
$params['password'] = $Mail_Pass; |
$params['password'] = $Mail_Pass; |
| 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 |
|
|