Skip to content

Commit

Permalink
Merge pull request #888 from inbaz/develop
Browse files Browse the repository at this point in the history
added from field from config
  • Loading branch information
BigAndini authored Oct 9, 2016
2 parents 56d0590 + 0b24e83 commit faddc70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/ErsBase/src/ErsBase/Service/EmailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ public function send() {
$message->addBcc($user->getEmail());
}

$config = $em = $this->getServiceLocator()->get('config');
$this->setFrom($config['ERS']['info_mail']);

$message->addFrom($this->getFrom());
$message->setSubject($this->getSubject());

Expand Down

0 comments on commit faddc70

Please sign in to comment.