class Sendmail extends Driver (View source)

Properties

protected array $config Konfigurasi. from  Driver
protected array $to

List penerima email.

from  Driver
protected array $cc

List penerima email (copy carbon).

from  Driver
protected array $bcc

List penerima email (back copy carbon).

from  Driver
protected array $replyto

List penerima balasan email.

from  Driver
protected array $attachments

List lampiran.

from  Driver
protected string $body

Body email.

from  Driver
protected string $alt_body

Alternate body.

from  Driver
protected string $subject

Subyek email.

from  Driver
protected array $invalid_addresses

List alamat email yang tidak lolos validasi.

from  Driver
protected array $boundaries

Pembatas pesan.

from  Driver
protected array $headers

List header.

from  Driver
protected array $extras

List header kustom.

from  Driver
protected bool $pipelining

Aktifkan pipelining?

from  Driver
protected string $type

Tipe email.

from  Driver

Methods

__construct(array $config)

Konstruktor.

from  Driver
$this
pipelining(bool $activate = true)

Aktif/nonaktifkan pipelining driver.

from  Driver
$this
body(string $body)

Set body email.

from  Driver
$this
alt_body(string $body)

Set alternative body email.

from  Driver
$this
priority(string $priority)

Set prioritas email.

from  Driver
$this
html_body(string $html, bool $alternatify = null, bool $attachify = null)

Set body email (HTML).

from  Driver
$this
subject(string $subject)

Set subyek email.

from  Driver
$this
from(string $email, bool|string $name = false)

Set alamat pengirim email.

from  Driver
$this
to(string|array $email, string|bool $name = false)

Tambahkan list penerima email.

from  Driver
$this
cc(string|array $email, string|bool $name = false)

Tambahkan list penerima email (copy carbon).

from  Driver
$this
bcc(string|array $email, string|bool $name = false)

Tambahkan list penerima email (back copy carbon).

from  Driver
$this
replyto(string|array $email, string|bool $name = false)

Tambahkan list penerima balasan email.

from  Driver
$this
return_path(string $email)

Set alamat return-path.

from  Driver
append(string $list, string|array $email, string|bool $name = false)

Tambahkan ke list penerima.

from  Driver
$this
reset()

Reset properti email.

from  Driver
$this
header(string|array $headers, string $value = null)

Set header kustom.

from  Driver
$this
attach(string $file, bool $inline = false, string $cid = null, string $mime = null, string $name = null)

Lampirkan file ke email.

from  Driver
$this
string_attach(string $contents, string $filename, string $cid = null, bool $inline = false, string $mime = null)

Lampirkan file menggunakan inputan string.

from  Driver
static $this
mime(string $file)

Tebak mime-type file lampiran.

from  Driver
bool|array
validation()

Validasi seuruh alamat email.

from  Driver
bool
send(bool $validate = null)

Mulai proses pengiriman.

from  Driver
array
get_invalid_addresses()

Ambil list alamat email yang tidak lolos validasi.

from  Driver
set_header($header, $value)

Set header email.

from  Driver
string|array
get_header(string $header = null, bool $formatted = true)

Ambil header email.

from  Driver
string
encode(string $header)

Encode mime header.

from  Driver
get_attachment_headers($type, $boundary)

Ambil header lampiran.

from  Driver
array
build(bool $without_bcc = false)

Susun header dan body email.

from  Driver
static string
wrap(string $message, int $length, string $newline, bool $as_html = true)

Wrap teks.

from  Driver
static string
standardize(string $string, string $newline = null)

Standarisasi newline.

from  Driver
static string
encode_string(string $string, string $encoding, string $newline = null)

Encode string menurut encoding yang diberikan.

from  Driver
static string
format(array $addresses)

Mereturn string alamat email yang telah diformat.

from  Driver
static string
alternatify(string $html, int $wordwrap, string $newline)

Buat alternate body.

from  Driver
bool
transmit()

Mulai proses transmisi data.

Details

__construct(array $config)

Konstruktor.

Parameters

array $config

$this pipelining(bool $activate = true)

Aktif/nonaktifkan pipelining driver.

Parameters

bool $activate

Return Value

$this

$this body(string $body)

Set body email.

Parameters

string $body

Return Value

$this

$this alt_body(string $body)

Set alternative body email.

Parameters

string $body

Return Value

$this

$this priority(string $priority)

Set prioritas email.

Parameters

string $priority

Return Value

$this

$this html_body(string $html, bool $alternatify = null, bool $attachify = null)

Set body email (HTML).

Method ini juga membuat alternate body secara otomatis.

Parameters

string $html
bool $alternatify
bool $attachify

Return Value

$this

$this subject(string $subject)

Set subyek email.

Parameters

string $subject

Return Value

$this

$this from(string $email, bool|string $name = false)

Set alamat pengirim email.

Parameters

string $email
bool|string $name

Return Value

$this

$this to(string|array $email, string|bool $name = false)

Tambahkan list penerima email.

Parameters

string|array $email
string|bool $name

Return Value

$this

$this cc(string|array $email, string|bool $name = false)

Tambahkan list penerima email (copy carbon).

Parameters

string|array $email
string|bool $name

Return Value

$this

$this bcc(string|array $email, string|bool $name = false)

Tambahkan list penerima email (back copy carbon).

Parameters

string|array $email
string|bool $name

Return Value

$this

$this replyto(string|array $email, string|bool $name = false)

Tambahkan list penerima balasan email.

Parameters

string|array $email
string|bool $name

Return Value

$this

$this return_path(string $email)

Set alamat return-path.

Parameters

string $email

Return Value

$this

protected append(string $list, string|array $email, string|bool $name = false)

Tambahkan ke list penerima.

Parameters

string $list
string|array $email
string|bool $name

$this reset()

Reset properti email.

Return Value

$this

$this header(string|array $headers, string $value = null)

Set header kustom.

Parameters

string|array $headers
string $value

Return Value

$this

$this attach(string $file, bool $inline = false, string $cid = null, string $mime = null, string $name = null)

Lampirkan file ke email.

Parameters

string $file
bool $inline
string $cid
string $mime
string $name

Return Value

$this

$this string_attach(string $contents, string $filename, string $cid = null, bool $inline = false, string $mime = null)

Lampirkan file menggunakan inputan string.

Parameters

string $contents
string $filename
string $cid
bool $inline
string $mime

Return Value

$this

static protected $this mime(string $file)

Tebak mime-type file lampiran.

Parameters

string $file

Return Value

$this

protected bool|array validation()

Validasi seuruh alamat email.

Return Value

bool|array

bool send(bool $validate = null)

Mulai proses pengiriman.

Parameters

bool $validate

Return Value

bool

array get_invalid_addresses()

Ambil list alamat email yang tidak lolos validasi.

Return Value

array

protected set_header($header, $value)

Set header email.

Parameters

$header
$value

protected string|array get_header(string $header = null, bool $formatted = true)

Ambil header email.

Parameters

string $header
bool $formatted

Return Value

string|array

protected string encode(string $header)

Encode mime header.

Parameters

string $header

Return Value

string

protected get_attachment_headers($type, $boundary)

Ambil header lampiran.

Parameters

$type
$boundary

protected array build(bool $without_bcc = false)

Susun header dan body email.

Parameters

bool $without_bcc

Return Value

array

static protected string wrap(string $message, int $length, string $newline, bool $as_html = true)

Wrap teks.

Parameters

string $message
int $length
string $newline
bool $as_html

Return Value

string

static protected string standardize(string $string, string $newline = null)

Standarisasi newline.

Parameters

string $string
string $newline

Return Value

string

static protected string encode_string(string $string, string $encoding, string $newline = null)

Encode string menurut encoding yang diberikan.

Parameters

string $string
string $encoding
string $newline

Return Value

string

static protected string format(array $addresses)

Mereturn string alamat email yang telah diformat.

Parameters

array $addresses

Return Value

string

static protected string alternatify(string $html, int $wordwrap, string $newline)

Buat alternate body.

Parameters

string $html
int $wordwrap
string $newline

Return Value

string

protected bool transmit()

Mulai proses transmisi data.

Return Value

bool