diff --git a/app/Model/DreamjobCompany.php b/app/Model/DreamjobCompany.php
index fd92091..e2f388a 100755
--- a/app/Model/DreamjobCompany.php
+++ b/app/Model/DreamjobCompany.php
@@ -46,6 +46,7 @@ class DreamjobCompany extends AppModel {
$Email->template('registration_company');
$key = substr($data['User']['code'],2);
$Email->viewVars(array('data'=>$data,'key'=>$key));
+ $Email->attachments(array('dak.jpg' => WWW_ROOT.DS.'mail'.DS.'dak.jpg'));
return $Email->send();
}
diff --git a/app/Model/DreamjobWorker.php b/app/Model/DreamjobWorker.php
index 62db1fa..cff11b6 100755
--- a/app/Model/DreamjobWorker.php
+++ b/app/Model/DreamjobWorker.php
@@ -47,6 +47,7 @@ class DreamjobWorker extends AppModel {
$Email->template('registration_worker');
$key = substr($data['User']['code'],2);
$Email->viewVars(array('data'=>$data,'key'=>$key));
+ $Email->attachments(array('dak.jpg' => WWW_ROOT.DS.'mail'.DS.'dak.jpg'));
return $Email->send();
}
diff --git a/app/View/Emails/html/registration_company.ctp b/app/View/Emails/html/registration_company.ctp
index f03519f..404eca6 100644
--- a/app/View/Emails/html/registration_company.ctp
+++ b/app/View/Emails/html/registration_company.ctp
@@ -1,4 +1,4 @@
-Sehr geehrter =$data['DreamjobUser']['owner'];?>!
+Sehr geehrter =$data['DreamjobCompany']['owner'];?>!
Herzlich Willkommen bei dreamJOB, der Plattform für Ihr komplette Ausschreibungsverfahren.
@@ -8,7 +8,7 @@ Um Ihren Account freizuschalten, klicken Sie bitte auf folgenden Link:
$url = $this->Html->url(array('controller' => 'registration', 'action' => 'active','code'=>$key,
'?'=>array('mail'=>$data['User']['mail']),'full_base' => true) );
echo $this->Html->link('Link', $url);
-?>
+?>
Bei Fragen wenden Sie sich gerne an unser Team:
service@dream-job.eu
diff --git a/app/View/Emails/text/registration_company.ctp b/app/View/Emails/text/registration_company.ctp
index 9da83b2..69f0c48 100644
--- a/app/View/Emails/text/registration_company.ctp
+++ b/app/View/Emails/text/registration_company.ctp
@@ -1,4 +1,4 @@
-Sehr geehrter =$data['DreamjobUser']['owner'];?>!
+Sehr geehrter =$data['DreamjobCompany']['owner'];?>!
Herzlich Willkommen bei dreamJOB, der Plattform für Ihr komplette Ausschreibungsverfahren.