\libMail

Class Mail 邮件

Summary

Methods
Properties
Constants
__construct()
sendEmail()
No public properties found
No constants found
_initialize()
No protected properties found
N/A
No private methods found
$charset
$debug
$is_smtp
$host
$smtp_auth
$username
$password
$smtp_secure
$port
$from
$from_name
$mail
N/A

Properties

$charset

$charset

$debug

$debug

$is_smtp

$is_smtp

$host

$host

$smtp_auth

$smtp_auth

$username

$username

$password

$password

$smtp_secure

$smtp_secure

$port

$port

$from

$from

$from_name

$from_name

$mail

$mail

Methods

__construct()

__construct() : mixed

Returns

mixed —

sendEmail()

sendEmail(array  $sendAddress = [], string  $Subject = '', string  $Body = '', string  $AltBody = '', array  $Attachment = [], bool  $isHtml = true, array  $CC = [], array  $BCC = []) : \lib\bool是否发送成功

发送邮件

Parameters

array $sendAddress

收件人地址数组, 如果为单值数组则只写入收件地址,如果为键值数组则还写入收件人名称

string $Subject

邮件主题

string $Body

邮件内容,如果以html格式可以写入html

string $AltBody

如果为单值数组则只写入收件地址,如果为键值数组则还写入收件人名称

array $Attachment

附件数组,如果为单值数组则为添加附件,如果为键值数组则添加附件并且重命名

bool $isHtml

是否以html文档格式发送

array $CC

抄送地址数组, 如果为单值数组则只写入收件地址,如果为键值数组则还写入收件人名称

array $BCC

密送地址数组,如果为单值数组则只写入收件地址,如果为键值数组则还写入收件人名称

Returns

\lib\bool是否发送成功 —

_initialize()

_initialize() : mixed

Returns

mixed —