CRLF
CRLF
CRLF EOL constant
Mail class
$queue : \Pop\Mail\Queue
Sending queue
$message : \Pop\Mail\Message
Message body
__construct(string $subject = null, mixed $rcpts = null) : \Pop\Mail\Mail
Constructor
Instantiate the mail object
string | $subject | |
mixed | $rcpts |
getQueue() : \Pop\Mail\Queue
Get the mail queue
getMessage() : \Pop\Mail\Message
Get the mail message
to(string $email, string $name = null) : \Pop\Mail\Mail
Alias to add a recipient to the queue
string | ||
string | $name |
add(string $email, string $name = null) : \Pop\Mail\Mail
Add a recipient to the queue
string | ||
string | $name |
addRecipients(mixed $rcpts) : \Pop\Mail\Mail
Add recipients to the queue
mixed | $rcpts |
from(string $email, string $name = null, boolean $replyTo = true) : \Pop\Mail\Mail
Alias to set the from and reply-to headers
string | ||
string | $name | |
boolean | $replyTo |
replyTo(string $email, string $name = null, boolean $from = true) : \Pop\Mail\Mail
Alias to set the reply-to and from headers
string | ||
string | $name | |
boolean | $from |
cc(string $email, string $name = null) : \Pop\Mail\Mail
Alias to set the cc headers
string | ||
string | $name |
bcc(string $email, string $name = null) : \Pop\Mail\Mail
Alias to set the bcc headers
string | ||
string | $name |
setHeader(string $name, string $value) : \Pop\Mail\Mail
Set a mail header
string | $name | |
string | $value |
setHeaders(array $headers) : \Pop\Mail\Mail
Set mail headers
array | $headers |
setSubject(string $subj) : \Pop\Mail\Mail
Set the subject
string | $subj |
setBoundary(string $bnd = null) : \Pop\Mail\Mail
Set MIME boundary
string | $bnd |
setEol(string $eol = \Pop\Mail\Mail::CRLF) : \Pop\Mail\Mail
Set EOL
string | $eol |
setCharset(string $chr) : \Pop\Mail\Mail
Set character set
string | $chr |
setText(string $text) : \Pop\Mail\Mail
Set text part of the message.
string | $text |
setHtml(string $html) : \Pop\Mail\Mail
Set HTML part of the message.
string | $html |
sendAsGroup(boolean $group) : \Pop\Mail\Mail
Set the send as group flag
boolean | $group |
attachFile(string $file) : \Pop\Mail\Mail
Attach a file to the mail object.
string | $file |
setParams(mixed $params = null) : \Pop\Mail\Mail
Set parameters
mixed | $params |
saveTo(string $to = null, string $format = null) : \Pop\Mail\Mail
Save mail message or messages in a folder to be sent at a later date
string | $to | |
string | $format |
sendFrom(string $from = null, boolean $delete = false) : \Pop\Mail\Mail
Send mail message or messages that are saved in a folder.
This method depends on the server being set up correctly as an SMTP server and sendmail being correctly defined in the php.ini file.
string | $from | |
boolean | $delete |