欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
php mail 類(lèi) 很簡(jiǎn)單的功能
 

<?php

class popMail
{
 var $user=‘sanshi0815@tom.com‘;
 var $pwd=‘1234‘;
 var $popFp;
 var $msg;
 var $welcome  = ‘歡迎使用叁石pop 接收郵件!‘;
 function popMail($popHost=‘pop.tom.com‘,$popPort=110)
 {
  $this->msg = array();
  $this->msg[] = $this->welcome;
  if ( $this->openPop($popHost,$popPort))
  {
   $this->msg[] = ‘pop server connect success!‘;
  }else{
   print_r( $this->msg );
  }
 }
 function checkCommon($com,$msg)
 {
  echo $cod = empty($com)? $this->getServerMsg() : $this->putServerMsg( $com );
  $this->msg[] = ereg( "^\+OK" ,$cod )? $msg : $com .‘ exec is fauiler!error:‘.$cod ;
  if( !ereg( "^\+OK" ,$cod ) )
  {
   echo $cod;
   print_r($this->msg);
   $this->closeStmp();
   exit(0);
  }
 }
 function init()
 {
  $greeting=‘‘;
  $rn=‘\r\n‘;
  //$this->checkCommon(‘‘,"connect");
  //echo $this->putServerMsg("APOP ".$this->user ." ".$this->pwd.$rn);
  // $this->checkCommon("USER ",‘user‘);
  echo $this->putServerMsg("USER $this->user".$rn);
  echo $this->putServerMsg("PASS $this->pwd".$rn);
  print_r( $this->msg );
 }
 function openPop($popHost,$popPort=110)
 {
  if( empty($popHost) )
  {
   $this->msg[] = ‘pop host is null!‘;
   return false;
  }
  if( $fp = fsockopen($popHost,$popPort))
  {
   $this->popFp = $fp;
   //echo $this->getServerMsg();
   return true;
  }
  $this->msg[] = ‘pop server connect failure‘;
  return false;
 }
 function getServerMsg()
 {
  if( empty( $this->popFp ) )
  {
   $this->msg[] = ‘popFp is null!‘;
   print_r($this->msg);
   return false;
  }
  return fgets( $this->popFp,512);
 }
 function putServerMsg($msg)
 {
  if( empty( $this->popFp ) )
  {
   $this->msg[] = ‘popFp is null!‘;
   print_r($this->msg);
   return false;
  }
  if( feof($this->popFp))
  {
   echo "fp is end !";
   return false;
  }
  fputs( $this->popFp , $msg );
  return $this->getServerMsg();
 }
 function closeStmp()
 {
  empty($this->popFp) ? ‘‘:fclose($this->popFp);
  $this->msg[] = "close stmp";
 }
}

?>

使用

$pop = new popMail();
$pop->init();

時(shí)間倉促,沒(méi)有注釋?zhuān)?jiàn)諒!

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
php 郵件發(fā)送表單數據 | 同路吧
PHP FILTER
編程語(yǔ)言用正則表達式判斷輸入的數字是否合法的例子
php中使用echo “”時(shí)一個(gè)最容易出錯的地方
PHP 透過(guò) SMTP 發(fā)送郵件使用PHPMailer
用 python 編寫(xiě)簡(jiǎn)單的證書(shū)域名到期報警腳本
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久