Nextcloud PHP API (stable18)

IMessage

Interface IMessage

Tags
since
13.0.0

Table of Contents

attach()  : IMessage
setBcc()  : IMessage
Set the BCC recipients of this message.
setCc()  : IMessage
Set the CC recipients of this message.
setFrom()  : IMessage
Set the from address of this message.
setReplyTo()  : IMessage
Set the Reply-To address of this message
setTo()  : IMessage
Set the to addresses of this message.
useTemplate()  : IMessage

Methods

setBcc()

Set the BCC recipients of this message.

public setBcc(array $recipients) : IMessage
Parameters
$recipients : array

Example: array('recipient@domain.org', 'other@domain.org' => 'A name')

Tags
since
13.0.0
Return values
IMessage

setCc()

Set the CC recipients of this message.

public setCc(array $recipients) : IMessage
Parameters
$recipients : array

Example: array('recipient@domain.org', 'other@domain.org' => 'A name')

Tags
since
13.0.0
Return values
IMessage

setFrom()

Set the from address of this message.

public setFrom(array $addresses) : IMessage

If no "From" address is used \OC\Mail\Mailer will use mail_from_address and mail_domain from config.php

Parameters
$addresses : array

Example: array('sender@domain.org', 'other@domain.org' => 'A name')

Tags
since
13.0.0
Return values
IMessage

setReplyTo()

Set the Reply-To address of this message

public setReplyTo(array $addresses) : IMessage
Parameters
$addresses : array
Tags
since
13.0.0
Return values
IMessage

setTo()

Set the to addresses of this message.

public setTo(array $recipients) : IMessage
Parameters
$recipients : array

Example: array('recipient@domain.org', 'other@domain.org' => 'A name')

Tags
since
13.0.0
Return values
IMessage

Search results