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.
Returns encoded message.
Builds text content.
Details
at line 45
__construct()
No description
at line 60
Message
setFrom($email, $name = NULL)
Sets the sender of the message.
at line 71
array
getFrom()
Returns the sender of the message.
at line 83
Message
addReplyTo($email, $name = NULL)
Adds the reply-to address.
at line 95
Message
setSubject($subject)
Sets the subject of the message.
at line 106
string
getSubject()
Returns the subject of the message.
at line 118
Message
addTo($email, $name = NULL)
Adds email recipient.
at line 131
Message
addCc($email, $name = NULL)
Adds carbon copy email recipient.
at line 144
Message
addBcc($email, $name = NULL)
Adds blind carbon copy email recipient.
at line 172
Message
setReturnPath($email)
Sets the Return-Path header of the message.
at line 183
string
getReturnPath()
Returns the Return-Path header.
at line 194
Message
setPriority($priority)
Sets email priority.
at line 205
int
getPriority()
Returns email priority.
at line 217
Message
setHtmlBody($html, $basePath = NULL)
Sets HTML body.
at line 262
mixed
getHtmlBody()
Gets HTML body.
at line 275
MimePart
addEmbeddedFile($file, $content = NULL, $contentType = NULL)
Adds embedded file.
at line 289
MimePart
addAttachment($file, $content = NULL, $contentType = NULL)
Adds attachment.
at line 325
string
generateMessage()
Returns encoded message.
at line 335
protected Message
build()
Builds email. Does not modify itself, but returns a new object.
at line 383
protected string
buildText($html)
Builds text content.