IMessage
Interface IMessage
Tags
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
attach()
public
attach(IAttachment $attachment) : IMessage
Parameters
- $attachment : IAttachment
Tags
Return values
IMessage —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
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
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
Return values
IMessage —setReplyTo()
Set the Reply-To address of this message
public
setReplyTo(array $addresses) : IMessage
Parameters
- $addresses : array
Tags
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
Return values
IMessage —useTemplate()
public
useTemplate(IEMailTemplate $emailTemplate) : IMessage
Parameters
- $emailTemplate : IEMailTemplate