\p8_smtp

Summary

Methods
Properties
Constants
p8_smtp()
connect()
send()
helo()
ehlo()
auth()
mail()
rcpt()
data()
is_connected()
send_data()
get_data()
set()
$connection
$recipients
$headers
$timeout
$errors
$status
$body
$from
$host
$port
$helo
$auth
$user
$pass
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$connection

$connection : 

Type

$recipients

$recipients : 

Type

$headers

$headers : 

Type

$timeout

$timeout : 

Type

$errors

$errors : 

Type

$status

$status : 

Type

$body

$body : 

Type

$from

$from : 

Type

$host

$host : 

Type

$port

$port : 

Type

$helo

$helo : 

Type

$auth

$auth : 

Type

$user

$user : 

Type

$pass

$pass : 

Type

Methods

p8_smtp()

p8_smtp(  $params = array()) 

参数为一个数组 host SMTP 服务器的主机 默认:localhost port SMTP 服务器的端口 默认:25 helo 发送HELO命令的名称 默认:localhost user SMTP 服务器的用户名 默认:空值 pass SMTP 服务器的登陆密码 默认:空值 timeout 连接超时的时间 默认:5

@return bool

Parameters

$params

connect()

connect(  $params = array()) 

Parameters

$params

send()

send(  $params = array()) 

参数为数组 recipients 接收人的数组 from 发件人的地址,也将作为回复地址 headers 头部信息的数组 body 邮件的主体

Parameters

$params

helo()

helo() 

ehlo()

ehlo() 

auth()

auth() 

mail()

mail(  $from) 

Parameters

$from

rcpt()

rcpt(  $to) 

Parameters

$to

data()

data() 

is_connected()

is_connected() 

send_data()

send_data(  $data) 

Parameters

$data

get_data()

get_data() 

set()

set(  $var,   $value) 

Parameters

$var
$value