Bitrix API

Mail

Table of Contents

Methods

__construct()  : mixed
Mail constructor.
getPdfAttachment()  : bool|false|int
Get pdf file of payment bill.
send()  : mixed
sendInvoice()  : Result
Sending invoice
setData()  : Result
Set mail data before sending

Methods

__construct()

Mail constructor.

public __construct() : mixed

getPdfAttachment()

Get pdf file of payment bill.

public static getPdfAttachment(mixed $invoiceId) : bool|false|int
Parameters
$invoiceId : mixed
Tags
throws
ArgumentException
throws
ArgumentNullException
throws
LoaderException
throws
NotSupportedException
Return values
bool|false|int

send()

public static send(mixed $invoiceId) : mixed
Parameters
$invoiceId : mixed
Tags
throws
ArgumentException
throws
LoaderException
throws
ObjectPropertyException
throws
SystemException

sendInvoice()

Sending invoice

public sendInvoice() : Result
Return values
Result

setData()

Set mail data before sending

public setData([array<string|int, mixed> $invoiceData = array() ][, array<string|int, mixed> $sendData = array() ][, null $mailTemplateId = null ]) : Result
Parameters
$invoiceData : array<string|int, mixed> = array()
$sendData : array<string|int, mixed> = array()
$mailTemplateId : null = null
Return values
Result

        
On this page

Search results