class Pop3 {
var $subject; // 邮件主题
var $from_email; // 发件人地址
var $from_name; // 发件人姓名
var $to_email; // 收件人地址
var $to_name; // 收件人姓名
var $body; // 邮件内容
var $filename; // 文件名
var $socket; // 以后的 socket
var $Line;
var $Status;
if ($this->Status[ "LASTRESULT"] <> "+") return 0;
return 1;
}
}
class Smtp {
var $Subject; // string the email's subject
var $FromName; // string sender's name (opt)
var $ToName; // string recipient's name (opt)
var $Body; // string body copy
var $Attachment; // attachment (optional)
var $AttachmentType;
var $Socket;
var $Line;
var $Status;
if ($this->Status[ "LASTRESULT"] <> "2") return false;
return true;
}
function Ehlo()
{
/* Well, let's use "helo" for now.. Until we need the
extra func's [Unk]
*/
if(fputs($this->Socket, "helo localhostrn")<0){
return false;
}
$this->Line = fgets($this->Socket, 1024);
<?php
if ($EMAIL_INC) return;
$EMAIL_INC= "defined";
define( "SmtpPort",25);
class Pop3 {
var $subject; // 邮件主题
var $from_email; // 发件人地址
var $from_name; // 发件人姓名
var $to_email; // 收件人地址
var $to_name; // 收件人姓名
var $body; // 邮件内容
var $filename; // 文件名
var $socket; // 以后的 socket
var $Line;
var $Status;
if ($this->Status[ "LASTRESULT"] <> "+") return 0;
return 1;
}
}
class Smtp {
var $Subject; // string the email's subject
var $FromName; // string sender's name (opt)
var $ToName; // string recipient's name (opt)
var $Body; // string body copy
var $Attachment; // attachment (optional)
var $AttachmentType;
var $Socket;
var $Line;
var $Status;
if ($this->Status[ "LASTRESULT"] <> "2") return false;
return true;
}
function Ehlo()
{
/* Well, let's use "helo" for now.. Until we need the
extra func's [Unk]
*/
if(fputs($this->Socket, "helo localhostrn")<0){
return false;
}
$this->Line = fgets($this->Socket, 1024);