Message
class Message extends MimePart
Mail provides functionality to compose and send both text and MIME-compliant multipart email messages.
Constants
HIGH |
Priority |
NORMAL |
Priority |
LOW |
Priority |
Properties
static array | $defaultHeaders | ||
string | $subject | ||
mixed | $htmlBody |
Methods
No description
Returns the sender of the message.
Adds the reply-to address.
Sets the subject of the message.
Returns the subject of the message.
Sets the Return-Path header of the message.
Returns the Return-Path header.
Sets email priority.
Returns email priority.
Sets HTML body.
Gets HTML body.
Adds embedded file.
Adds attachment.
Gets all email attachments.
Returns encoded message.
Builds text content.
Details
at line 43
__construct()
No description
at line 58
Message
setFrom($email, $name = NULL)
Sets the sender of the message.
at line 69
array
getFrom()
Returns the sender of the message.
at line 81
Message
addReplyTo($email, $name = NULL)
Adds the reply-to address.
at line 93
Message
setSubject($subject)
Sets the subject of the message.
at line 104
string
getSubject()
Returns the subject of the message.
at line 116
Message
addTo($email, $name = NULL)
Adds email recipient.
at line 129
Message
addCc($email, $name = NULL)
Adds carbon copy email recipient.
at line 142
Message
addBcc($email, $name = NULL)
Adds blind carbon copy email recipient.
at line 170
Message
setReturnPath($email)
Sets the Return-Path header of the message.
at line 181
string
getReturnPath()
Returns the Return-Path header.
at line 192
Message
setPriority($priority)
Sets email priority.
at line 203
int
getPriority()
Returns email priority.
at line 215
Message
setHtmlBody($html, $basePath = NULL)
Sets HTML body.
at line 272
mixed
getHtmlBody()
Gets HTML body.
at line 285
MimePart
addEmbeddedFile($file, $content = NULL, $contentType = NULL)
Adds embedded file.
at line 299
MimePart
addAttachment($file, $content = NULL, $contentType = NULL)
Adds attachment.
at line 309
MimePart[]
getAttachments()
Gets all email attachments.
at line 345
string
generateMessage()
Returns encoded message.
at line 355
protected Message
build()
Builds email. Does not modify itself, but returns a new object.
at line 403
protected string
buildText($html)
Builds text content.