Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 614 Bytes
<?php
use Illuminate\Console\Command;
class QueueEmailCommand extends Command {
protected $name = 'email:send';
protected $description = 'Send email from laravel to beandstalk with golang.';
public function __construct()
{
parent::__construct();
}
public function fire()
{
$message = array(
'to' => 'zack@inrpce.com',
'toname' => 'Zack Kitzmiller',
'subject' => 'Hello From Go!',
'body' => 'Through Beanstalkd',
'from' => 'zack@inrpce.com'
);
Queue::push('', $message, 'emails');
}
}