php 送信邮件问题??????
$pathCommon = dirname(__FILE__)."_common5";
$pathCommon =str_replace("cpar1","",$pathCommon) ;
include($pathCommon.'root.php');
クラス テスト{
var $dbCon;
var $root;
var $pathCommon;
var $js;
var $func;
var $funcUsage;
var $css;
var $mail;
function test($pathCommon=" "){
$this->pathCommon = $pathCommon;
$this->root = new root($this->pathCommon);
$this->gt;root->DB ();
$this->dbCon = new DB('BITINTRA');
$this->dbCon->errorShow = true;
$this->js = $this- >root->JavaScript();
$this->func = $this->root->Functional();
$this->funcUsage = $this->gt;func->Usage();
$ this->css = $this->root->CSS();
$this->view = $this->root->View();
$this->gt; page = $this->view->page();
$this->box = $this->view->box();
$this->grp = $this ->view->group();
$this->mail = $this->root->Mail();
}
}
$To = "guo321@btechnology.com";
$Cc = "guo321@btechnology.com";
sendMail("ACTION",'',rtrim($To,","),rtrim($Cc, ","),$Text);
function sendMail($sendTo,$stepIndex="",$to="",$cc="",$Text=""){
$ this->mail->phpMailer();
$msg = '
$pathCommon = dirname(__FILE__)."_common5"; $pathCommon =str_replace("cpar1","",$pathCommon); include($pathCommon.'root.php'); クラステスト{ var $dbCon; var $root; var $pathCommon; var $js; var $func; var $funcUsage; var $css; var $mail; 関数テスト($pathCommon=""){ $this->pathCommon = $pathCommon; $this->root = 新しいルート($this->pathCommon); $this->root->DB(); $this->dbCon = 新しい DB('BITINTRA'); $this->dbCon->errorShow = true; $this->js = $this->root->JavaScript(); $this->func = $this->root->Functional(); $this->funcUsage = $this->func->Usage(); $this->css = $this->root->CSS(); $this->view = $this->root->View(); $this->page = $this->view->page(); $this->box = $this->view->box(); $this->grp = $this->view->group(); $this->mail = $this->root->Mail(); } function sendMail($sendTo,$stepIndex="",$to="",$cc="",$Text=""){ $this->mail->phpMailer(); $msg = '<div><strong>皆様</strong></div><br>'; $msg.=$Text; $subject = "テスト"; $this->mail->sendMail($subject, $msg, "test", $to, $cc, "", "", "AA"); } } $test = 新しいテスト(); $To = "guo321@btechnology.com"; $Cc = "guo321@btechnology.com"; $test->sendMail("ACTION",'',rtrim($To,","),rtrim($Cc,","),$Text); <div class="clear"></div>