neue emailtexte ferttig ! außer registrierung
This commit is contained in:
parent
c50a2d29c2
commit
9adec511d0
|
@ -25,3 +25,4 @@ upload.sh
|
||||||
Icon?
|
Icon?
|
||||||
ehthumbs.db
|
ehthumbs.db
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
/nbproject/
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
App::uses('AppController', 'Controller');
|
App::uses('AppController', 'Controller');
|
||||||
|
App::uses('CakeEmail', 'Network/Email');
|
||||||
|
|
||||||
class HomeController extends AppController {
|
class HomeController extends AppController {
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,8 @@ class DreamjobCompany extends AppModel {
|
||||||
public static function sendMail($data){
|
public static function sendMail($data){
|
||||||
$Email = new CakeEmail('dreamjobMain');
|
$Email = new CakeEmail('dreamjobMain');
|
||||||
$Email->to($data['User']['mail']);
|
$Email->to($data['User']['mail']);
|
||||||
$Email->subject('Welcome to our really cool thing');
|
$Email->subject('Willkommen bei dreamJOB');
|
||||||
$Email->template('registration');
|
$Email->template('registration_company');
|
||||||
$key = substr($data['User']['code'],2);
|
$key = substr($data['User']['code'],2);
|
||||||
$Email->viewVars(array('data'=>$data,'key'=>$key));
|
$Email->viewVars(array('data'=>$data,'key'=>$key));
|
||||||
return $Email->send();
|
return $Email->send();
|
||||||
|
|
|
@ -35,12 +35,12 @@ class DreamjobJobApplication extends AppModel {
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
public static function sendMail($mail,$id){
|
public static function sendMail($mail,$data,$id){
|
||||||
$Email = new CakeEmail('dreamjobMain');
|
$Email = new CakeEmail('dreamjobMain');
|
||||||
$Email->to($mail);
|
$Email->to($mail);
|
||||||
$Email->subject('Welcome to our really cool thing');
|
$Email->subject('Sie haben eine neue Bewerbung auf dreamJOB erhalten');
|
||||||
$Email->template('job_application');
|
$Email->template('job_application');
|
||||||
$Email->viewVars(array('id'=>$id));
|
$Email->viewVars(array('id'=>$id,'data'=>$data));
|
||||||
return $Email->send();
|
return $Email->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ class DreamjobJobApplication extends AppModel {
|
||||||
|
|
||||||
if($result){
|
if($result){
|
||||||
$open = $this->DreamjobJobOpening->find('first', array('conditions' => array('DreamjobJobOpening.id' => $data['DreamjobJobApplication']['opening_id'])));
|
$open = $this->DreamjobJobOpening->find('first', array('conditions' => array('DreamjobJobOpening.id' => $data['DreamjobJobApplication']['opening_id'])));
|
||||||
$result = self::sendMail($open['User']['mail'],$this->id);
|
$result = self::sendMail($open['User']['mail'],array('DreamjobCompany'=>$open['DreamjobCompany']),$this->id);
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
|
|
@ -34,12 +34,18 @@ class DreamjobJobMsg extends AppModel {
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
public static function sendMail($mail,$id){
|
public static function sendMail($mail,$id,$data,$fromcompany=false){
|
||||||
$Email = new CakeEmail('dreamjobMain');
|
$Email = new CakeEmail('dreamjobMain');
|
||||||
$Email->to($mail);
|
$Email->to($mail);
|
||||||
$Email->subject('Welcome to our really cool thing');
|
if($fromcompany){
|
||||||
$Email->template('job_application_msg');
|
$Email->subject('Du hast eine neue Nachricht bei dreamJOB');
|
||||||
$Email->viewVars(array('id'=>$id));
|
$Email->template('job_application_msg_worker');
|
||||||
|
}else{
|
||||||
|
$Email->subject('Sie haben eine neue Nachricht auf dreamJOB');
|
||||||
|
$Email->template('job_application_msg_company');
|
||||||
|
}
|
||||||
|
$Email->attachments(array('dak.jpg' => WWW_ROOT.DS.'mail'.DS.'dak.jpg'));
|
||||||
|
$Email->viewVars(array('id'=>$id,'data'=>$data));
|
||||||
return $Email->send();
|
return $Email->send();
|
||||||
}
|
}
|
||||||
public function sendMessage(){
|
public function sendMessage(){
|
||||||
|
@ -50,9 +56,9 @@ class DreamjobJobMsg extends AppModel {
|
||||||
$app = $this->DreamjobJobApplication->find('first',array('conditions' => array('DreamjobJobApplication.id' => $result["DreamjobJobMsg"]["application_id"])) );
|
$app = $this->DreamjobJobApplication->find('first',array('conditions' => array('DreamjobJobApplication.id' => $result["DreamjobJobMsg"]["application_id"])) );
|
||||||
|
|
||||||
if($this->fromcompany)
|
if($this->fromcompany)
|
||||||
$result = self::sendMail($app['User']['mail'],$this->application_id);
|
$result = self::sendMail($app['User']['mail'],$this->application_id,array('DreamjobCompany'=>$app['DreamjobCompany']),true);
|
||||||
else
|
else
|
||||||
$result = self::sendMail($app['WorkerUser']['mail'],$this->application_id);
|
$result = self::sendMail($app['WorkerUser']['mail'],$this->application_id,array('User'=>$app['WorkerUser'],'AppUser'=>$app['AppUserWorker']));
|
||||||
}
|
}
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$dataSource->commit();
|
$dataSource->commit();
|
||||||
|
|
|
@ -43,8 +43,8 @@ class DreamjobWorker extends AppModel {
|
||||||
public static function sendMail($data){
|
public static function sendMail($data){
|
||||||
$Email = new CakeEmail('dreamjobMain');
|
$Email = new CakeEmail('dreamjobMain');
|
||||||
$Email->to($data['User']['mail']);
|
$Email->to($data['User']['mail']);
|
||||||
$Email->subject('Welcome to our really cool thing');
|
$Email->subject('Willkommen bei dreamJOB');
|
||||||
$Email->template('registration');
|
$Email->template('registration_worker');
|
||||||
$key = substr($data['User']['code'],2);
|
$key = substr($data['User']['code'],2);
|
||||||
$Email->viewVars(array('data'=>$data,'key'=>$key));
|
$Email->viewVars(array('data'=>$data,'key'=>$key));
|
||||||
return $Email->send();
|
return $Email->send();
|
||||||
|
|
|
@ -1,3 +1,20 @@
|
||||||
<?php
|
Sehr geehrter <?=$data['DreamjobCompany']['owner'];?>!<br/><br/>
|
||||||
echo $this->Html->link(__('dreamjob.message.send'),array('controller'=>'job','action'=>'applicationGet','id'=>$id,'full_base' => true));
|
|
||||||
?>
|
Sie haben eine Bewerbung erhalten</br><br/>
|
||||||
|
Sehen Sie diese unter folgendem Link ein:<br/>
|
||||||
|
<?=$this->Html->link(__('dreamjob.message.send'),array('controller'=>'job','action'=>'applicationGet','id'=>$id,'full_base' => true));?>
|
||||||
|
Bei Fragen wenden Sie sich gerne an unser Team:<br/>
|
||||||
|
<a href="mailto:service@dream-job.eu">service@dream-job.eu</a><br/><br/>
|
||||||
|
Jetzt noch mehr Funktionen!<br/>
|
||||||
|
|
||||||
|
Mit unserem dreamJOB Premium-Account</br>
|
||||||
|
<a href="http://dream-job.eu/premiumAccount">hier mehr infos</a><br/><br/>
|
||||||
|
|
||||||
|
Mit freundlichen Grüßen</br>
|
||||||
|
Ihr dreamJOB Team</br>
|
||||||
|
<br/> <br/> <br/> <br/> <br/> <br/>
|
||||||
|
Ausgezeichnete Leistungen, bester Service: <br/>
|
||||||
|
Herzlich willkommen bei der DAK-Gesundheit.<br/>
|
||||||
|
<a href="#"><img src="cid:dak.jpg"></a><br/><br/>
|
||||||
|
<a href="http://dream-job.eu/agb">AGBs</a><br/>
|
||||||
|
<a href="http://dream-job.eu/impressum">Impressum</a>
|
|
@ -1,3 +0,0 @@
|
||||||
<?php
|
|
||||||
echo $this->Html->link(__('dreamjob.message.send'),array('controller'=>'job','action'=>'applicationGet','id'=>$id,'ages'=>'ages','full_base' => true));
|
|
||||||
?>
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
Sehr geehrter <?=$data['DreamjobCompany']['owner'];?>!<br/><br/>
|
||||||
|
Sie haben eine Nachricht von einem Bewerber erhalten</br><br/>
|
||||||
|
Sehe diese unter folgendem Link ein:<br/>
|
||||||
|
<?=$this->Html->link(__('dreamjob.message.send'),array('controller'=>'job','action'=>'applicationGet','id'=>$id,'ages'=>'ages','full_base' => true));?>
|
||||||
|
<br/><br/>
|
||||||
|
Bei Fragen wenden Sie sich gerne an unser Team:<br/>
|
||||||
|
<a href="mailto:service@dream-job.eu">service@dream-job.eu</a><br/><br/>
|
||||||
|
Jetzt noch mehr Funktionen!<br/>
|
||||||
|
Mit unserem dreamJOB Premium-Account</br>
|
||||||
|
<a href="https://dream-job.eu/premiumAccount">hier mehr infos</a><br/><br/>
|
||||||
|
Mit freundlichen Grüßen</br>
|
||||||
|
Ihr dreamJOB Team</br>
|
||||||
|
<br/> <br/> <br/> <br/> <br/> <br/>
|
||||||
|
Ausgezeichnete Leistungen, bester Service: <br/>
|
||||||
|
Herzlich willkommen bei der DAK-Gesundheit.<br/>
|
||||||
|
<a href="#"><img src="cid:dak.jpg"></a><br/><br/>
|
||||||
|
<a href="https://dream-job.eu/agb">AGBs</a><br/>
|
||||||
|
<a href="https://dream-job.eu/impressum">Impressum</a><br/>
|
|
@ -0,0 +1,16 @@
|
||||||
|
Hallo <?=$data['AppUser']['first_name']." ".$data['AppUser']['last_name'];?><br/><br/>
|
||||||
|
Du hast eine Nachricht von einem Unternehmen erhalten.<br/><br/>
|
||||||
|
Sehe diese unter folgendem Link ein:<br/>
|
||||||
|
<?=$this->Html->link(__('dreamjob.message.send'),array('controller'=>'job','action'=>'applicationGet','id'=>$id,'ages'=>'ages','full_base' => true));?>
|
||||||
|
<br/><br/>
|
||||||
|
Bei Fragen wenden Sie sich gerne an unser Team:<br/>
|
||||||
|
<a href="mailto:service@dream-job.eu">service@dream-job.eu</a><br/><br/>
|
||||||
|
|
||||||
|
Mit freundlichen Grüßen</br>
|
||||||
|
Ihr dreamJOB Team</br>
|
||||||
|
<br/> <br/> <br/> <br/> <br/> <br/>
|
||||||
|
Ausgezeichnete Leistungen, bester Service: <br/>
|
||||||
|
Herzlich willkommen bei der DAK-Gesundheit.<br/>
|
||||||
|
<a href="#"><img src="cid:dak.jpg"></a><br/><br/>
|
||||||
|
<a href="http://dream-job.eu/agb">AGBs</a><br/>
|
||||||
|
<a href="http://dream-job.eu/impressum">Impressum</a>
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$url = $this->Html->url(array('controller' => 'registration', 'action' => 'active','code'=>$key,
|
||||||
|
'?'=>array('mail'=>$data['User']['mail']),'full_base' => true) );
|
||||||
|
echo $this->Html->link($url, $url);
|
||||||
|
?>
|
|
@ -1,3 +1,29 @@
|
||||||
<?php
|
Sehr geehrter <?=$data['DreamjobCompany']['owner'];?>!<br/><br/>
|
||||||
echo $this->Html->url(array('controller'=>'job','action'=>'applicationGet','id'=>$id), true);
|
|
||||||
?>
|
Sie haben eine Bewerbung erhalten.
|
||||||
|
|
||||||
|
Sehen Sie diese unter folgendem Link ein:
|
||||||
|
<?=$this->Html->url(array('controller'=>'job','action'=>'applicationGet','id'=>$id), true);?>
|
||||||
|
|
||||||
|
---
|
||||||
|
Bei Fragen wenden Sie sich gerne an unser Team:
|
||||||
|
service@dream-job.eu
|
||||||
|
|
||||||
|
Jetzt noch mehr Funktionen!
|
||||||
|
Mit unserem dreamJOB Premium-Account
|
||||||
|
https://dream-job.eu/premiumAccount
|
||||||
|
|
||||||
|
Mit freundlichen Grüßen
|
||||||
|
Ihr dreamJOB Team
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Ausgezeichnete Leistungen, bester Service:
|
||||||
|
Herzlich willkommen bei der DAK-Gesundheit.
|
||||||
|
|
||||||
|
https://dream-job.eu/agb
|
||||||
|
https://dream-job.eu/impressum
|
|
@ -1,3 +0,0 @@
|
||||||
<?php
|
|
||||||
echo $this->Html->url(array('controller'=>'job','action'=>'applicationGet','id'=>$id,'ages'=>'ages'),true);
|
|
||||||
?>
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
Sehr geehrter <?=$data['DreamjobCompany']['owner'];?>!
|
||||||
|
|
||||||
|
Sie haben eine Nachricht von einem Bewerber erhalten
|
||||||
|
|
||||||
|
Sehe diese unter folgendem Link ein:
|
||||||
|
<?=$this->Html->url(array('controller'=>'job','action'=>'applicationGet','id'=>$id,'ages'=>'ages'),true);?>
|
||||||
|
|
||||||
|
---
|
||||||
|
Bei Fragen wenden Sie sich gerne an unser Team:
|
||||||
|
service@dream-job.eu
|
||||||
|
|
||||||
|
Jetzt noch mehr Funktionen!
|
||||||
|
Mit unserem dreamJOB Premium-Account
|
||||||
|
https://dream-job.eu/premiumAccount
|
||||||
|
|
||||||
|
Mit freundlichen Grüßen
|
||||||
|
Ihr dreamJOB Team
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Ausgezeichnete Leistungen, bester Service:
|
||||||
|
Herzlich willkommen bei der DAK-Gesundheit.
|
||||||
|
|
||||||
|
https://dream-job.eu/agb
|
||||||
|
https://dream-job.eu/impressum
|
|
@ -0,0 +1,22 @@
|
||||||
|
Hallo <?=$data['AppUser']['first_name']." ".$data['AppUser']['last_name'];?>
|
||||||
|
Du hast eine Nachricht von einem Unternehmen erhalten
|
||||||
|
Sehe diese unter folgendem Link ein:
|
||||||
|
<?=$this->Html->url(array('controller'=>'job','action'=>'applicationGet','id'=>$id,'ages'=>'ages'),true);?>
|
||||||
|
|
||||||
|
|
||||||
|
Bei Fragen wenden Sie sich gerne an unser Team:
|
||||||
|
service@dream-job.eu
|
||||||
|
|
||||||
|
Mit freundlichen Grüßen
|
||||||
|
Ihr dreamJOB Team
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Ausgezeichnete Leistungen, bester Service:
|
||||||
|
Herzlich willkommen bei der DAK-Gesundheit.
|
||||||
|
|
||||||
|
https://dream-job.eu/agb
|
||||||
|
https://dream-job.eu/impressum
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?php
|
||||||
|
echo $this->Html->url(array('controller'=>'registration','action'=>'active','code'=>$key,
|
||||||
|
'?'=>array('mail'=>$data['User']['mail'])),true);
|
||||||
|
?>
|
|
@ -1,27 +1,14 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
||||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
||||||
*
|
|
||||||
* Licensed under The MIT License
|
|
||||||
* For full copyright and license information, please see the LICENSE.txt
|
|
||||||
* Redistributions of files must retain the above copyright notice.
|
|
||||||
*
|
|
||||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
||||||
* @link http://cakephp.org CakePHP(tm) Project
|
|
||||||
* @package app.View.Layouts.Email.html
|
|
||||||
* @since CakePHP(tm) v 0.10.0.1076
|
|
||||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
||||||
*/
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title><?php echo $title_for_layout; ?></title>
|
<style type="text/css">
|
||||||
|
.text{color:rgb(0,0,0); font-size:14px; font-family:'Helvetica'; }
|
||||||
|
a{color:blue; font-size:14px; font-family:'Helvetica'; text-decoration:none;}
|
||||||
|
.img{width:200px;}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="text">
|
||||||
<?php echo $this->fetch('content'); ?>
|
<?php echo $this->fetch('content'); ?>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Loading…
Reference in New Issue