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:

lib/public/Mail/IMessage.php#42

Parameters:
Returns:

\OCP\Mail\IMessage

Since:

13.0.0

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:

lib/public/Mail/IMessage.php#53

Parameters:
Returns:

\OCP\Mail\IMessage

Since:

13.0.0

public OCP\Mail\IMessage::setReplyTo($addresses)
Set the Reply-To address of this message
Source:

lib/public/Mail/IMessage.php#62

Parameters:
  • $addresses (array)
Returns:

\OCP\Mail\IMessage

Since:

13.0.0

public OCP\Mail\IMessage::setTo($recipients)
Set the to addresses of this message.
Source:

lib/public/Mail/IMessage.php#71

Parameters:
Returns:

\OCP\Mail\IMessage

Since:

13.0.0

public OCP\Mail\IMessage::setCc($recipients)
Set the CC recipients of this message.
Source:

lib/public/Mail/IMessage.php#80

Parameters:
Returns:

\OCP\Mail\IMessage

Since:

13.0.0

public OCP\Mail\IMessage::setBcc($recipients)
Set the BCC recipients of this message.
Source:

lib/public/Mail/IMessage.php#89

Parameters:
Returns:

\OCP\Mail\IMessage

Since:

13.0.0

public OCP\Mail\IMessage::useTemplate($emailTemplate)
Source:

lib/public/Mail/IMessage.php#96

Parameters:
Returns:

\OCP\Mail\IMessage

Since:

13.0.0