Envelop
class Envelop (View source)
Constants
| END |
The mail end of line |
Methods
Envelop Constructor.
Set the default header
Change the value of the boundary
Add personal headers
Compile the mail header
Add Reply-To
Add Return-Path
Add Return-Path
Set email priority.
Set email priority.
Get the headers
Get the subject of the email
Get the sender
Get the email message
Edit the mail message
Get the email encoding
Get Content-Type
Get the value of a variable that verifies that a sender is registered
Get the list of receivers
Details
__construct(bool $boundary = true)
Envelop Constructor.
void
setDefaultHeader()
Set the default header
protected void
setBoundary(string $boundary)
Change the value of the boundary
Envelop
withHeader(string $key, string $value)
Add personal headers
Envelop
to(string|array $to)
Define the receiver
Envelop
addFile(string $file)
Add an attachment file
string
compileHeaders()
Compile the mail header
Envelop
subject(string $subject)
Define the subject of the mail
Envelop
from(string $from, string|null $name = null)
Define the sender of the mail
Envelop
html(string $html)
Define the type of content in text/html
Envelop
text(string $text)
Add message body
Envelop
addBcc(string $mail, string|null $name = null)
Adds blind carbon copy
Envelop
bcc(string $mail, string|null $name = null)
Adds blind carbon copy
Envelop
addCc(string $mail, string|null $name = null)
Add carbon copy
Envelop
cc(string $mail, string|null $name = null)
Add carbon copy
Envelop
addReplyTo(string $mail, string|null $name = null)
Add Reply-To
Envelop
replyTo(string $mail, string|null $name = null)
Add Reply-To
Envelop
addReturnPath(string $mail, string|null $name = null)
Add Return-Path
Envelop
returnPath(string $mail, string|null $name = null)
Add Return-Path
Envelop
addPriority(int $priority)
Set email priority.
Envelop
setPriority(int $priority)
Set email priority.
array
getHeaders()
Get the headers
string|null
getSubject()
Get the subject of the email
string|null
getFrom()
Get the sender
string|null
getMessage()
Get the email message
void
setMessage(string $message, string $type = 'text/html')
Edit the mail message
string|null
getCharset()
Get the email encoding
string|null
getType()
Get Content-Type
bool
fromIsDefined()
Get the value of a variable that verifies that a sender is registered
Envelop
view(string $view, array $data = [])
Set the view build
Envelop
message(string $message, string $type = 'text/html')
Alias of setMessage
array
getTo()
Get the list of receivers