Get helpdesk email address from configuration
This commit is contained in:
parent
d5b5de3086
commit
a41a69676e
@ -43,8 +43,8 @@ class OrderSend extends Command
|
||||
{
|
||||
$so = Service::findOrFail($this->argument('service'));
|
||||
|
||||
// @todo TO get from DB
|
||||
Mail::to('help@graytech.net.au')->sendNow(new OrderRequestApprove($so));
|
||||
Mail::to(config('osb.ticket_admin'))
|
||||
->sendNow(new OrderRequestApprove($so));
|
||||
|
||||
if (Mail::failures()) {
|
||||
dump('Failure?');
|
||||
|
@ -104,7 +104,7 @@ class OrderController extends Controller
|
||||
|
||||
$ro = Rtm::where('parent_id',NULL)->sole();
|
||||
|
||||
Mail::to($ro->owner->email)
|
||||
Mail::to(config('osb.ticket_admin'))
|
||||
->queue((new OrderRequest($so,$request->input('options.notes') ?: ''))->onQueue('email')); //@todo Get email from DB.
|
||||
|
||||
return view('theme.frontend.metronic.order_received')
|
||||
|
@ -245,8 +245,7 @@ class ServiceController extends Controller
|
||||
$o->order_status = 'CHANGE-REQUEST';
|
||||
$o->save();
|
||||
|
||||
//@todo Get email from DB.
|
||||
Mail::to('help@graytech.net.au')
|
||||
Mail::to(config('osb.ticket_admin'))
|
||||
->queue((new ChangeRequest($o,$request->notes))->onQueue('email'));
|
||||
|
||||
return redirect('u/service/'.$o->id)->with('success','Upgrade requested');
|
||||
|
Loading…
Reference in New Issue
Block a user