-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
Description
return Yii::$app->mailqueue->compose("@frontend/views/emails/newJob", [
'name' => $job->FullName,
'email' => $job->Email,
'address' => $job->FullAddressHtml,
'price' => $job->price,
'url' => Yii::$app->urlManager->createAbsoluteUrl(['job/review', 'url' => $job->url])
])
->setFrom(\Yii::$app->params['fromEmail'])
->setTo($job->Email)
->setSubject('New Order')
->queue();
gives errror
The view file does not exist: /var/www/xx/frontend/mail/layouts/html.php
This works correctly when using the swiftmailer directly.
At the moment I am added this to the compose function
$this->htmlLayout = "@common/mail/". $this->htmlLayout;
Reactions are currently unavailable