IMessage¶
-
interface
OCP\Mail\
IMessage
¶ - Interface IMessage
Implemented by: OC\Mail\Message
Source: lib/public/Mail/IMessage.php#35
Methods¶
-
public
OCP\Mail\IMessage::
attach
($attachment)¶ Source: Parameters: - $attachment (
OCP\Mail\IAttachment
)
Returns: Since: 13.0.0
- $attachment (
-
public
OCP\Mail\IMessage::
setFrom
($addresses)¶ - Set the from address of this message.If no “From” address is used \OC\Mail\Mailer will use mail_from_address and mail_domain from config.php
Source: Parameters: - $addresses (array) Example: array('sender@domain.org‘, 'other@domain.org‘ => ‘A name’)
Returns: Since: 13.0.0
-
public
OCP\Mail\IMessage::
setReplyTo
($addresses)¶ - Set the Reply-To address of this message
Source: Parameters: - $addresses (array)
Returns: Since: 13.0.0
-
public
OCP\Mail\IMessage::
setTo
($recipients)¶ - Set the to addresses of this message.
Source: Parameters: - $recipients (array) Example: array('recipient@domain.org‘, 'other@domain.org‘ => ‘A name’)
Returns: Since: 13.0.0
-
public
OCP\Mail\IMessage::
setCc
($recipients)¶ - Set the CC recipients of this message.
Source: Parameters: - $recipients (array) Example: array('recipient@domain.org‘, 'other@domain.org‘ => ‘A name’)
Returns: Since: 13.0.0
-
public
OCP\Mail\IMessage::
setBcc
($recipients)¶ - Set the BCC recipients of this message.
Source: Parameters: - $recipients (array) Example: array('recipient@domain.org‘, 'other@domain.org‘ => ‘A name’)
Returns: Since: 13.0.0
-
public
OCP\Mail\IMessage::
useTemplate
($emailTemplate)¶ Source: Parameters: - $emailTemplate (
OCP\Mail\IEMailTemplate
)
Returns: Since: 13.0.0
- $emailTemplate (