/[LeafOK_CVS]/pvpgn-1.7.4/utils/lib/send_mail.inc.php
ViewVC logotype

Diff of /pvpgn-1.7.4/utils/lib/send_mail.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Sat Jun 24 09:23:47 2006 UTC Revision 1.3 by sysadm, Tue Mar 6 14:32:58 2007 UTC
# Line 13  function send_mail_do($db_conn) Line 13  function send_mail_do($db_conn)
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;
# Line 31  function send_mail_do($db_conn) Line 32  function send_mail_do($db_conn)
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    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1