\addons\phpmailer\libraryMailer

Summary

Methods
Properties
Constants
__construct()
subject()
from()
message()
to()
send()
getError()
$options
No constants found
setError()
$mail
$_error
N/A
No private methods found
No private properties found
N/A

Properties

$options

$options

默认配置

$mail

$mail

phpmailer对象

$_error

$_error

错误内容

Methods

__construct()

__construct(array  $options = []) : mixed

构造函数

Parameters

array $options

Returns

mixed —

subject()

subject(string  $subject) : $this

设置邮件主题

Parameters

string $subject

Returns

$this —

from()

from(string  $email, string  $name = '') : $this

设置发件人

Parameters

string $email
string $name

Returns

$this —

message()

message(string  $body, bool  $ishtml = true) : $this

设置邮件正文

Parameters

string $body
bool $ishtml

Returns

$this —

to()

to(string  $email) : $this

设置收件人

Parameters

string $email

Returns

$this —

send()

send() : mixed

Returns

mixed —

getError()

getError() : string

获取最后产生的错误

Returns

string —

setError()

setError(string  $error) : mixed

设置错误

Parameters

string $error

信息信息

Returns

mixed —