\smtp

SMTP邮件操作类

Summary

Methods
Properties
Constants
smtp()
sendmail()
smtp_send()
smtp_sockopen()
smtp_sockopen_relay()
smtp_sockopen_mx()
smtp_message()
smtp_eom()
smtp_ok()
smtp_putcmd()
smtp_error()
log_write()
strip_comment()
get_address()
smtp_debug()
$smtp_port
$time_out
$host_name
$log_file
$relay_host
$debug
$auth
$user
$pass
$sock
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$smtp_port

$smtp_port : 

Type

$time_out

$time_out : 

Type

$host_name

$host_name : 

Type

$log_file

$log_file : 

Type

$relay_host

$relay_host : 

Type

$debug

$debug : 

Type

$auth

$auth : 

Type

$user

$user : 

Type

$pass

$pass : 

Type

$sock

$sock : 

Type

Methods

smtp()

smtp(  $relay_host = "",   $smtp_port = 25,   $auth = FALSE,   $user,   $pass) 

Parameters

$relay_host
$smtp_port
$auth
$user
$pass

sendmail()

sendmail(string  $to, string  $webname, string  $from, string  $subject = "", string  $body = "", string  $mailtype,   $cc = "",   $bcc = "",   $additional_headers = "") : string

邮件主函数

Parameters

string $to

发送到的email

string $webname

站点名称

string $from

来自

string $subject

主题

string $body

邮件内容

string $mailtype

邮件类型

$cc
$bcc
$additional_headers

Returns

string

smtp_send()

smtp_send(string  $helo, string  $from, string  $to, string  $header, string  $body = "") : string

SMTP发送

Parameters

string $helo

发送HELO

string $from

来自

string $to

string $header

头部信息

string $body

内容主体

Returns

string

smtp_sockopen()

smtp_sockopen(  $address) 

Parameters

$address

smtp_sockopen_relay()

smtp_sockopen_relay() 

smtp_sockopen_mx()

smtp_sockopen_mx(  $address) 

Parameters

$address

smtp_message()

smtp_message(  $header,   $body) 

Parameters

$header
$body

smtp_eom()

smtp_eom() 

smtp_ok()

smtp_ok() 

smtp_putcmd()

smtp_putcmd(  $cmd,   $arg = "") 

Parameters

$cmd
$arg

smtp_error()

smtp_error(  $string) 

Parameters

$string

log_write()

log_write(  $message) 

Parameters

$message

strip_comment()

strip_comment(  $address) 

Parameters

$address

get_address()

get_address(  $address) 

Parameters

$address

smtp_debug()

smtp_debug(  $message) 

Parameters

$message