This commit is contained in:
Manish Verma
2016-12-13 18:18:25 +05:30
parent fc98add11c
commit 2d8e640e9b
2314 changed files with 97798 additions and 75664 deletions

View File

@@ -2,27 +2,28 @@
namespace App\Jobs;
use App\Http\Controllers\Common\PhpMailController;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use App\Jobs\Job;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Contracts\Bus\SelfHandling;
use App\Http\Controllers\Common\PhpMailController;
class SendEmail extends Job implements SelfHandling, ShouldQueue
class SendEmail extends Job implements SelfHandling,ShouldQueue
{
use InteractsWithQueue,SerializesModels;
protected $from;
protected $to;
protected $message;
protected $template;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($from, $to, $message, $template_variables = '')
public function __construct($from, $to, $message,$template_variables='')
{
$this->from = $from;
$this->to = $to;
@@ -37,8 +38,10 @@ class SendEmail extends Job implements SelfHandling, ShouldQueue
*/
public function handle(PhpMailController $PhpMailController)
{
$p = $PhpMailController->sendEmail($this->from, $this->to, $this->message, $this->template);
$p = $PhpMailController->sendEmail($this->from, $this->to, $this->message,$this->template);
return $p;
}
}