DocumentMailing

Extends

package

Default

Methods

Creates (but does not send) a new mail object based on the template having the given `$templateName` and attaches the file of the passed `$document` to it. Finally the mail is returned.

createDocumentMailFromTemplate(string $templateName, array $templateContext, \Shopware\Models\Order\Document\Document $document, \Shopware\Models\Shop\Shop|null $shop = null, array $mailConfig = array()) : \Enlight_Components_Mail

Arguments

$templateName

string

$templateContext

array

$document

\Shopware\Models\Order\Document\Document

$shop

\Shopware\Models\Shop\Shop|null

$mailConfig

array

Response

\Enlight_Components_Mail