I get the error unexpected T_IF on line 124 , line 8 is line 124
[PHP] #connect to the smtp server
$this->smtp_conn = fsockopen ($host, # the host of the server
$port, # the port to use
$errno, # error number if any
$errstr, # error message if any
$tval) # give up after ? secs
# verify we connected properly
if(empty($this->smtp_conn)) {
$this->error = array("error" => "Failed to connect to server",
"errno" => $errno,
"errstr" => $errstr);
if($this->do_debug >= 1) {
echo "SMTP -> ERROR: " . $this->error["error"] .
": $errstr ($errno)" . $this->CRLF;
}
return false;
}[/PHP]
[PHP] #connect to the smtp server
$this->smtp_conn = fsockopen ($host, # the host of the server
$port, # the port to use
$errno, # error number if any
$errstr, # error message if any
$tval) # give up after ? secs
# verify we connected properly
if(empty($this->smtp_conn)) {
$this->error = array("error" => "Failed to connect to server",
"errno" => $errno,
"errstr" => $errstr);
if($this->do_debug >= 1) {
echo "SMTP -> ERROR: " . $this->error["error"] .
": $errstr ($errno)" . $this->CRLF;
}
return false;
}[/PHP]
Comment