PHP Class Mailgun\Messages\BatchMessage

Inheritance: extends MessageBuilder
Show file Open project: mailgun/mailgun-php Class Usage Examples

Public Methods

Method Description
__construct ( RestClient $restClient, string $workingDomain, boolean $autoSend )
finalize ( )
getMessageIds ( ) : string[]
sendMessage ( array $message = [], array $files = [] )

Protected Methods

Method Description
addRecipient ( string $headerName, string $address, array $variables )

Method Details

__construct() public method

public __construct ( RestClient $restClient, string $workingDomain, boolean $autoSend )
$restClient Mailgun\Connection\RestClient
$workingDomain string
$autoSend boolean

addRecipient() protected method

protected addRecipient ( string $headerName, string $address, array $variables )
$headerName string
$address string
$variables array

finalize() public method

public finalize ( )

getMessageIds() public method

public getMessageIds ( ) : string[]
return string[]

sendMessage() public method

public sendMessage ( array $message = [], array $files = [] )
$message array
$files array