From be457800f8ee3e0f076607273527a4301dd08f40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20M=C3=BCller?=
Date: Thu, 11 Sep 2014 01:36:37 +0200
Subject: [PATCH] Externe Bewerbung
---
app/Controller/JobController.php | 2 +-
app/View/Emails/html/job_application_ext.ctp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/Controller/JobController.php b/app/Controller/JobController.php
index 340ce5c..899fe00 100644
--- a/app/Controller/JobController.php
+++ b/app/Controller/JobController.php
@@ -418,7 +418,7 @@ class JobController extends AppController {
$Email->bcc(array($w['User']['mail']));
$Email->subject('Bewerbung von '. $w['AppUser']['first_name'] .' '. $w['AppUser']['last_name']);
$Email->template('job_application_ext');
- $Email->viewVars(array('data'=>'test'));
+ $Email->viewVars(array('w'=>$w));
$Email->attachments(array('filename.pdf'=>array('data' =>$pdf,'mimetype' => 'application/pdf')));
if ($Email->send()) {
diff --git a/app/View/Emails/html/job_application_ext.ctp b/app/View/Emails/html/job_application_ext.ctp
index fab2204..5632bf4 100644
--- a/app/View/Emails/html/job_application_ext.ctp
+++ b/app/View/Emails/html/job_application_ext.ctp
@@ -4,7 +4,7 @@ Mit freundlichen Grüßen
=$w['AppUser']['first_name'].' '.$w['AppUser']['last_name'];?>
Bitte antworten Sie mir unter folgender E-Mail:
-=$w['User']['mail'];?>
+=$w['User']['mail'];?>
Diese Bewerbung wurde über dreamJOB versendet.
Jetzt kostenlos und bequem dreamJOB testen und Stellen ausschreiben auf www.dream-JOB.eu