Driver
abstract class Driver (View source)
Properties
protected array | $config | Konfigurasi. | |
protected array | $to | List penerima email. |
|
protected array | $cc | List penerima email (copy carbon). |
|
protected array | $bcc | List penerima email (back copy carbon). |
|
protected array | $replyto | List penerima balasan email. |
|
protected array | $attachments | List lampiran. |
|
protected string | $body | Body email. |
|
protected string | $alt_body | Alternate body. |
|
protected string | $subject | Subyek email. |
|
protected array | $invalid_addresses | List alamat email yang tidak lolos validasi. |
|
protected array | $boundaries | Pembatas pesan. |
|
protected array | $headers | List header. |
|
protected array | $extras | List header kustom. |
|
protected bool | $pipelining | Aktifkan pipelining? |
|
protected string | $type | Tipe email. |
Methods
Konstruktor.
Aktif/nonaktifkan pipelining driver.
Set body email.
Set alternative body email.
Set prioritas email.
Set body email (HTML).
Set subyek email.
Set alamat pengirim email.
Tambahkan list penerima email.
Tambahkan list penerima email (copy carbon).
Tambahkan list penerima email (back copy carbon).
Tambahkan list penerima balasan email.
Set alamat return-path.
Tambahkan ke list penerima.
Reset properti email.
Set header kustom.
Lampirkan file ke email.
Lampirkan file menggunakan inputan string.
Tebak mime-type file lampiran.
Validasi seuruh alamat email.
Mulai proses pengiriman.
Ambil list alamat email yang tidak lolos validasi.
Set header email.
Ambil header email.
Encode mime header.
Ambil header lampiran.
Susun header dan body email.
Wrap teks.
Standarisasi newline.
Encode string menurut encoding yang diberikan.
Mereturn string alamat email yang telah diformat.
Buat alternate body.
Mulai proses transmisi data.
Details
__construct(array $config)
Konstruktor.
$this
pipelining(bool $activate = true)
Aktif/nonaktifkan pipelining driver.
$this
body(string $body)
Set body email.
$this
alt_body(string $body)
Set alternative body email.
$this
priority(string $priority)
Set prioritas email.
$this
html_body(string $html, bool $alternatify = null, bool $attachify = null)
Set body email (HTML).
Method ini juga membuat alternate body secara otomatis.
$this
subject(string $subject)
Set subyek email.
$this
from(string $email, bool|string $name = false)
Set alamat pengirim email.
$this
to(string|array $email, string|bool $name = false)
Tambahkan list penerima email.
$this
cc(string|array $email, string|bool $name = false)
Tambahkan list penerima email (copy carbon).
$this
bcc(string|array $email, string|bool $name = false)
Tambahkan list penerima email (back copy carbon).
$this
replyto(string|array $email, string|bool $name = false)
Tambahkan list penerima balasan email.
$this
return_path(string $email)
Set alamat return-path.
protected
append(string $list, string|array $email, string|bool $name = false)
Tambahkan ke list penerima.
$this
reset()
Reset properti email.
$this
header(string|array $headers, string $value = null)
Set header kustom.
$this
attach(string $file, bool $inline = false, string $cid = null, string $mime = null, string $name = null)
Lampirkan file ke email.
$this
string_attach(string $contents, string $filename, string $cid = null, bool $inline = false, string $mime = null)
Lampirkan file menggunakan inputan string.
static protected $this
mime(string $file)
Tebak mime-type file lampiran.
protected bool|array
validation()
Validasi seuruh alamat email.
bool
send(bool $validate = null)
Mulai proses pengiriman.
array
get_invalid_addresses()
Ambil list alamat email yang tidak lolos validasi.
protected
set_header($header, $value)
Set header email.
protected string|array
get_header(string $header = null, bool $formatted = true)
Ambil header email.
protected string
encode(string $header)
Encode mime header.
protected
get_attachment_headers($type, $boundary)
Ambil header lampiran.
protected array
build(bool $without_bcc = false)
Susun header dan body email.
static protected string
wrap(string $message, int $length, string $newline, bool $as_html = true)
Wrap teks.
static protected string
standardize(string $string, string $newline = null)
Standarisasi newline.
static protected string
encode_string(string $string, string $encoding, string $newline = null)
Encode string menurut encoding yang diberikan.
static protected string
format(array $addresses)
Mereturn string alamat email yang telah diformat.
static protected string
alternatify(string $html, int $wordwrap, string $newline)
Buat alternate body.
abstract protected bool
transmit()
Mulai proses transmisi data.