18 lines
351 B
PHP
18 lines
351 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use Illuminate\Support\Facades\Mail;
|
||
|
|
||
|
class SystemMailController extends Controller
|
||
|
{
|
||
|
/**
|
||
|
* Send notification
|
||
|
*/
|
||
|
public function sendNotification()
|
||
|
{
|
||
|
$message = "This is something important. Probably";
|
||
|
Mail::to(env('ADMIN_EMAIL'))->send(new SystemEmail($message));
|
||
|
}
|
||
|
}
|