echo $str."<p>\r\n";
}
}
function send($from,$to,$subject,$body)
{
if($from == "" || $to == "")
{
exit("请输入信箱地址");
}
if($subject == "") $sebject = "无标题";
if($body == "") $body = "无内容";
$this->from = $from;
$this->to = $to;
$this->subject = $subject;
$this->body = $body;
$all = "from:".$this->from."\n";
$all .= "to:".$this->to."\n";
$all .= "subject:".$this->subject."\n";
$all .= $this->body;
/*
如过把$all的内容再加处理,就可以实现发送mime邮件了
不过还需要加很多程序
*/
//以下是和服务器会话
$this->in = "ehlo helo\r\n";
$this->docommand();
$this->in = "auth login\r\n";
$this->docommand();
$this->in = $this->user."\r\n";
$this->docomma
| 对此文章发表了评论 |
