"2") return false;
return true;
}
function Body()
{
$FileSize = 0;
$Attachment = null;
$fp = null;
$buffer = sprintf( "From: %srnTo:%srnSubject:%srn", $this->FromName, $this->ToName, $this->Subject);
if(fputs($this->Socket, "DATArn")<0){
return false;
}
$this->Line = fgets($this->Socket, 1024);
$this->Status[ "LASTRESULT"] = substr($this->Line, 0, 1);
$this->Status[ "LASTRESULTTXT"] = substr($this->Line, 0, 1024);
if ($this->Status[ "LASTRESULT"] <> "3") return false;
if(fputs($this->Socket, $buffer)<0){
return false;
}
if ($this->Attachment == null){
if(fputs($this->Socket, "MIME-Version: 1.0rnContent-Type: text/plain; charset=ISO-8859-1rnContent-Transfer-Encoding: 7bitrnrn")<0){
return false;
}
if(fputs($this->Socket, "$this->Bodyrnrn")<0){
return false;
}
if(fputs($this->Socket, ".rn")<0){
return false;
}
$this->