if ( count( $this->to ) + count( $this->cc ) + count( $this->bcc ) < 1 )
{
( $this->Lang( "provide_address" ), self::STOP_CRITICAL );
throw new phpmailerException( );
}
上面代码运行报错:Parse error: syntax error, unexpected ',' in E:\PHPnow-1.5.6\htdocs\source\core\util\class.phpmailer.php on line 272
272行代码是: ( $this->Lang( "provide_address" ), self::STOP_CRITICAL );
{
( $this->Lang( "provide_address" ), self::STOP_CRITICAL );
throw new phpmailerException( );
}
上面代码运行报错:Parse error: syntax error, unexpected ',' in E:\PHPnow-1.5.6\htdocs\source\core\util\class.phpmailer.php on line 272
272行代码是: ( $this->Lang( "provide_address" ), self::STOP_CRITICAL );
这个是什么东西?确定前面没有代码了,这个应该是调用一个函数吧?
protected function PreSend( )
{
try
{
$mailHeader = "";
if ( count( $this->to ) + count( $this->cc ) + count( $this->bcc ) < 1 )
{
( $this->Lang( "provide_address" ), self::STOP_CRITICAL );
throw new phpmailerException( );
}
if ( !empty( $this->AltBody ) )
{
$this->ContentType = "multipart/alternative";
}
[code=php]protected function PreSend( )
{
try
{
$mailHeader = "";
if ( count( $this->to ) + count( $this->cc ) + count( $this->bcc ) < 1 )
{
//你这里想要做什么?语法肯定过不了的
( $this->Lang( "provide_address" ), self::STOP_CRITICAL);
throw new phpmailerException( );
}
请问你这个是啥子