Browse Source

Envoi d'un document par email : nom du producteur dans sujet du mail #177

dev
Guillaume Bourgeois 4 years ago
parent
commit
4b6bdcb82b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/Document.php

+ 1
- 1
common/models/Document.php View File

]) ])
->setTo($this->user->email) ->setTo($this->user->email)
->setFrom([$producer->getEmailOpendistrib() => $producer->name]) ->setFrom([$producer->getEmailOpendistrib() => $producer->name])
->setSubject('[Opendistrib] '.$subjectEmail) ;
->setSubject('['.$producer->name.'] '.$subjectEmail) ;


$this->generatePdf(Pdf::DEST_FILE) ; $this->generatePdf(Pdf::DEST_FILE) ;
$email->attach($this->getFilename()); $email->attach($this->getFilename());

Loading…
Cancel
Save