Skip to content

Commit

Permalink
Mails from and subject changed
Browse files Browse the repository at this point in the history
  • Loading branch information
joekurta committed Sep 2, 2015
1 parent 929d482 commit 632a55c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Command/ActivationEmailsCommand.php
Expand Up @@ -42,7 +42,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$message = \Swift_Message::newInstance()
->setSubject('Say hello to Summer Camp 2015!')
->setFrom('info@netgen.hr')
->setFrom(array('info@netgen.hr' => 'PHP/eZ Publish Summer Camp 2015'))
->setTo($user_email)
->setBody(
$this->getContainer()->get('templating')->render(
Expand All @@ -63,8 +63,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$emailHash = md5($this->getContainer()->getParameter('email_hash_prefix') . $user_email);

$message = \Swift_Message::newInstance()
->setSubject('PHP & eZ Publish Summer Camp 2015 - Questionnaire')
->setFrom('info@netgen.hr')
->setSubject('Questionnaire')
->setFrom(array('info@netgen.hr' => 'PHP/eZ Publish Summer Camp 2015'))
->setTo($user_email)
->setBody(
$this->getContainer()->get('templating')->render(
Expand Down
12 changes: 6 additions & 6 deletions Controller/UserAdminController.php
Expand Up @@ -268,7 +268,7 @@ public function loginEmailAction(Request $request, $typeOf)
{
$message = \Swift_Message::newInstance()
->setSubject('Say hello to Summer Camp 2015!')
->setFrom('info@netgen.hr')
->setFrom(array('info@netgen.hr' => 'PHP/eZ Publish Summer Camp 2015'))
->setTo($user_email)
->setBody(
$this->renderView(
Expand All @@ -281,8 +281,8 @@ public function loginEmailAction(Request $request, $typeOf)
else if ($typeOf === '1')
{
$message = \Swift_Message::newInstance()
->setSubject('PHP & eZ Publish Summer Camp 2015 - Questionnaire')
->setFrom('info@netgen.hr')
->setSubject('Questionnaire')
->setFrom(array('info@netgen.hr' => 'PHP/eZ Publish Summer Camp 2015'))
->setTo($user_email)
->setBody(
$this->renderView(
Expand Down Expand Up @@ -325,7 +325,7 @@ public function oneUserLoginEmailAction(Request $request, $id, $typeOf)
{
$message = \Swift_Message::newInstance()
->setSubject('Say hello to Summer Camp 2015!')
->setFrom('info@netgen.hr')
->setFrom(array('info@netgen.hr' => 'PHP/eZ Publish Summer Camp 2015'))
->setTo($user_email)
->setBody(
$this->renderView(
Expand All @@ -338,8 +338,8 @@ public function oneUserLoginEmailAction(Request $request, $id, $typeOf)
else if ($typeOf === '1')
{
$message = \Swift_Message::newInstance()
->setSubject('PHP & eZ Publish Summer Camp 2015 - Questionnaire')
->setFrom('info@netgen.hr')
->setSubject('Questionnaire')
->setFrom(array('info@netgen.hr' => 'PHP/eZ Publish Summer Camp 2015'))
->setTo($user_email)
->setBody(
$this->renderView(
Expand Down

0 comments on commit 632a55c

Please sign in to comment.