[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Subscriptions/ -> SubscriptionSender.php (summary)

(no description)

File Size: 86 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  __construct()
  getMessageID()
  send()

Functions
Functions that are not part of a class:

__construct(Mailer $mailer = null)   X-Ref
No description

getMessageID($id, $rev = null)   X-Ref
Get a valid message id for a certain $id and revision (or the current revision)

param: string $id  The id of the page (or media file) the message id should be for
param: string $rev The revision of the page, set to the current revision of the page $id if not set
return: string

send($subscriber_mail, $subject, $context, $template, $trep, $hrep = null, $headers = [])   X-Ref
Helper function for sending a mail

author: Adrian Lang <lang@cosmocode.de>
param: string $subscriber_mail The target mail address
param: string $subject         The lang id of the mail subject (without the
param: string $context         The context of this mail, eg. page or namespace id
param: string $template        The name of the mail template
param: array  $trep            Predefined parameters used to parse the
param: array  $hrep            Predefined parameters used to parse the
param: array  $headers         Additional mail headers in the form 'name' => 'value'
return: bool