BaseMessage
abstract class BaseMessage (View source)
Abstract base class for sending mail using the App Engine mail APIs.
Properties
protected | $message | ||
static protected | $allowed_headers | ||
static protected | $extension_denylist | ||
static protected | $set_functions |
Methods
No description
No description
Construct an instance of Message.
Adds an attachment to the Message object.
Adds an array of attachments to the Message object.
Adds a header pair to the mail object.
Adds an array of headers to the mail object.
Checks that an attachment is valid.
Checks that an email is valid using the mailparse extension if available.
Check validity of a header pair.
Clear all attachments from the mail object.
Clear all headers from the mail object.
Handles application errors generated by the RPC call.
Sets HTML content for the email body.
Sets AMP HTML content for the email body. This field is optional. Setting AMP HTML body makes the email an AMP Email. Plain text or HTML may become fallback content depending on the email client used.
Sets a reply-to address for the mail object.
Sets the sender for the mail object.
Sets the subject for the mail object.
Sets plain text for the email body.
Details
at line 32
abstract
send()
at line 38
abstract protected
getFunctionArray()
at line 77
__construct(array $options = null)
Construct an instance of Message.
at line 113
addAttachment(string $filename, mixed $data, string $content_id = null)
Adds an attachment to the Message object.
at line 129
addAttachmentArray()
deprecated
deprecated
Adds an array of attachments to the Message object.
at line 163
addAttachmentsArray()
Adds an array of attachments to the Message object.
at line 198
addHeader(string $key, string $value)
Adds a header pair to the mail object.
at line 215
addHeaderArray()
Adds an array of headers to the mail object.
at line 243
protected bool
checkValidAttachment(string $filename)
Checks that an attachment is valid.
at line 268
protected bool
checkValidEmail(string $email)
Checks that an email is valid using the mailparse extension if available.
at line 288
protected bool
checkValidHeader(string $key, string $value)
Check validity of a header pair.
at line 307
clearAttachments()
Clear all attachments from the mail object.
at line 314
clearHeaders()
Clear all headers from the mail object.
at line 327
protected
handleApplicationError()
Handles application errors generated by the RPC call.
at line 355
setHtmlBody(string $text)
Sets HTML content for the email body.
at line 372
setAmpHtmlBody(string $text)
Sets AMP HTML content for the email body. This field is optional. Setting AMP HTML body makes the email an AMP Email. Plain text or HTML may become fallback content depending on the email client used.
at line 388
setReplyTo(string $email)
Sets a reply-to address for the mail object.
at line 403
setSender(string $email)
Sets the sender for the mail object.
at line 417
setSubject(string $subject)
Sets the subject for the mail object.
at line 433
bool
setTextBody(string $text)
Sets plain text for the email body.