Leaf PHP

Mail
in package

Table of Contents

Properties

$mail  : mixed

Methods

__construct()  : mixed
attach()  : Mail
Add attachments to your mail from your file system
connect()  : mixed
Connect to your mail server
create()  : static
Create a new mail instance
getMail()  : mixed
send()  : mixed
Send your crafted email

Properties

$mail

protected mixed $mail = []

Methods

__construct()

public __construct([mixed $mail = null ]) : mixed
Parameters
$mail : mixed = null

attach()

Add attachments to your mail from your file system

public attach(mixed $path[, mixed $name = "" ][, mixed $encoding = PHPMailerPHPMailerPHPMailer::ENCODING_BASE64 ][, mixed $type = "" ][, mixed $disposition = "attachment" ]) : Mail
Parameters
$path : mixed
$name : mixed = ""
$encoding : mixed = PHPMailerPHPMailerPHPMailer::ENCODING_BASE64
$type : mixed = ""
$disposition : mixed = "attachment"
Tags
throws
Exception
Return values
Mail

connect()

Connect to your mail server

public connect(array<string|int, mixed> $connection) : mixed
Parameters
$connection : array<string|int, mixed>

Connection details

create()

Create a new mail instance

public static create(mixed $mail) : static
Parameters
$mail : mixed
Return values
static

getMail()

public getMail() : mixed

send()

Send your crafted email

public send() : mixed

        
On this page

Search results