Add more descriptive subject lines.

This commit is contained in:
mdpoulter
2020-01-27 14:45:40 +02:00
parent 3cd975dbbd
commit 5dcc7b9efd
3 changed files with 12 additions and 3 deletions

View File

@ -32,6 +32,9 @@ class EstimatePdf extends Mailable
*/
public function build()
{
return $this->from($this->notificationEmail)->markdown('emails.send.estimate', ['data', $this->data]);
$company = $this->data['company']['name'];
return $this->from($this->notificationEmail)
->subject("Estimate from $company")
->markdown('emails.send.estimate', ['data', $this->data]);
}
}