Zend\Mail\Message
Synopsis
class Message
{
- // methods
- public bool isValid()
- public Message setEncoding()
- public string getEncoding()
- public Message setHeaders()
- public Headers getHeaders()
- public Message setFrom()
- public Message addFrom()
- public AddressList getFrom()
- public Message setTo()
- public Message addTo()
- public AddressList getTo()
- public Message setCc()
- public Message addCc()
- public AddressList getCc()
- public Message setBcc()
- public Message addBcc()
- public AddressList getBcc()
- public Message setReplyTo()
- public Message addReplyTo()
- public AddressList getReplyTo()
- public Message setSender()
- public AddressInterface getSender()
- public Message setSubject()
- public null|string getSubject()
- public Message setBody()
- public getBody()
- public string getBodyText()
- protected ArrayIterator getHeaderByName()
- protected void clearHeaderByName()
- protected AddressList getAddressListFromHeader()
- protected void updateAddressList()
- public string toString()
- public static Message fromString()
Tasks
Line | Task |
---|---|
541+ | Restore body to Mime\Message |
Members
protected
- $body
—
Zend\Mail\string|object
Content of the message - $encoding
—
string
Message encoding - $headers — Zend\Mail\Headers
Methods
protected
- clearHeaderByName() — Clear a header by name
- getAddressListFromHeader() — Retrieve the AddressList from a named header
- getHeaderByName() — Retrieve a header by name
- updateAddressList() — Update an address list
public
- addBcc() — Add a "Bcc" address
- addCc() — Add a "Cc" address
- addFrom() — Add a "From" address
- addReplyTo() — Add one or more addresses to the Reply-To recipients
- addTo() — Add one or more addresses to the To recipients
- fromString() — Instantiate from raw message string
- getBcc() — Retrieve list of BCC recipients
- getBody() — Return the currently set message body
- getBodyText() — Get the string-serialized message body text
- getCc() — Retrieve list of CC recipients
- getEncoding() — Get the message encoding
- getFrom() — Retrieve list of From senders
- getHeaders() — Access headers collection
- getReplyTo() — Access the address list of the Reply-To header
- getSender() — Retrieve the sender address, if any
- getSubject() — Get the message subject header value
- getTo() — Access the address list of the To header
- isValid() — Is the message valid?
- setBcc() — Set (overwrite) BCC addresses
- setBody() — Set the message body
- setCc() — Set (overwrite) CC addresses
- setEncoding() — Set the message encoding
- setFrom() — Set (overwrite) From addresses
- setHeaders() — Compose headers
- setReplyTo() — Overwrite the address list in the Reply-To recipients
- setSender() — setSender
- setSubject() — Set the message subject header value
- setTo() — Overwrite the address list in the To recipients
- toString() — Serialize to string