class SendMail

Properties

$to
$subject
$body
$cc
$bcc
$replay_to
$return_path
$objMail

Methods

void
__construct()

コンストラクタ

setRecip($key, $recipient)

No description

setTo($to, $to_name = '')

No description

setFrom($from, $from_name = '')

No description

setCc($cc, $cc_name = '')

No description

setBCc(string $bcc)

No description

setReplyTo(string $reply_to)

No description

setReturnPath($return_path)

No description

setSubject($subject)

No description

setBody($body)

No description

setHost($host) deprecated

前方互換用

setPort($port) deprecated

前方互換用

getNameAddress($name, $mail_address)

No description

setItem($to, $subject, $body, $fromaddress, $from_name, $reply_to = '', $return_path = '', $errors_to = '', $bcc = '', $cc = '')

No description

setItemHtml($to, $subject, $body, $fromaddress, $from_name, $reply_to = '', $return_path = '', $errors_to = '', $bcc = '', $cc = '')

No description

setBase($to, $subject, $body, $fromaddress, $from_name, $reply_to = '', $return_path = '', $errors_to = '', $bcc = '', $cc = '')

No description

getBaseHeader()

No description

getTEXTHeader()

No description

getHTMLHeader()

No description

array|string
getRecip()

メーラーバックエンドに応じた送信先を返す

boolean
sendMail($isHtml = false)

TXTメール送信を実行する.

boolean
sendHtmlMail()

HTMLメール送信を実行する.

array
getBackendParams(string $backend)

メーラーバックエンドに応じたパラメーターを返す.

Details

at line 48
void __construct()

コンストラクタ

Return Value

void

at line 76
setRecip($key, $recipient)

Parameters

$key
$recipient

at line 82
setTo($to, $to_name = '')

Parameters

$to
$to_name

at line 91
setFrom($from, $from_name = '')

Parameters

$from
$from_name

at line 101
setCc($cc, $cc_name = '')

Parameters

$cc
$cc_name

at line 114
setBCc(string $bcc)

Parameters

string $bcc

at line 127
setReplyTo(string $reply_to)

Parameters

string $reply_to

at line 135
setReturnPath($return_path)

Parameters

$return_path

at line 141
setSubject($subject)

Parameters

$subject

at line 148
setBody($body)

Parameters

$body

at line 160
setHost($host) deprecated

deprecated 2.12.2 (#1912)

前方互換用

Parameters

$host

at line 177
setPort($port) deprecated

deprecated 2.12.2 (#1912)

前方互換用

Parameters

$port

at line 194
getNameAddress($name, $mail_address)

Parameters

$name
$mail_address

at line 209
setItem($to, $subject, $body, $fromaddress, $from_name, $reply_to = '', $return_path = '', $errors_to = '', $bcc = '', $cc = '')

Parameters

$to
$subject
$body
$fromaddress
$from_name
$reply_to
$return_path
$errors_to
$bcc
$cc

at line 214
setItemHtml($to, $subject, $body, $fromaddress, $from_name, $reply_to = '', $return_path = '', $errors_to = '', $bcc = '', $cc = '')

Parameters

$to
$subject
$body
$fromaddress
$from_name
$reply_to
$return_path
$errors_to
$bcc
$cc

at line 231
setBase($to, $subject, $body, $fromaddress, $from_name, $reply_to = '', $return_path = '', $errors_to = '', $bcc = '', $cc = '')

Parameters

$to
$subject
$body
$fromaddress
$from_name
$reply_to
$return_path
$errors_to
$bcc
$cc

at line 259
getBaseHeader()

at line 284
getTEXTHeader()

at line 293
getHTMLHeader()

at line 306
array|string getRecip()

メーラーバックエンドに応じた送信先を返す

Return Value

array|string メーラーバックエンドに応じた送信先

at line 327
boolean sendMail($isHtml = false)

TXTメール送信を実行する.

設定された情報を利用して, メールを送信する.

Parameters

$isHtml

Return Value

boolean

at line 351
boolean sendHtmlMail()

HTMLメール送信を実行する.

Return Value

boolean

at line 362
array getBackendParams(string $backend)

メーラーバックエンドに応じたパラメーターを返す.

Parameters

string $backend Pear::Mail のバックエンド

Return Value

array メーラーバックエンドに応じたパラメーターの配列