mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
update
This commit is contained in:
parent
242649aa9e
commit
70efb21041
2 changed files with 13 additions and 1 deletions
|
@ -8,6 +8,7 @@ use Filament\Forms\Components\TextInput;
|
||||||
use Filament\Forms\Form;
|
use Filament\Forms\Form;
|
||||||
use Filament\Notifications\Notification;
|
use Filament\Notifications\Notification;
|
||||||
use Filament\Pages\Page;
|
use Filament\Pages\Page;
|
||||||
|
use PHPMailer\PHPMailer\PHPMailer;
|
||||||
|
|
||||||
class SendEmail extends Page
|
class SendEmail extends Page
|
||||||
{
|
{
|
||||||
|
@ -55,7 +56,17 @@ Welcome to your new account.
|
||||||
|
|
||||||
public function send()
|
public function send()
|
||||||
{
|
{
|
||||||
if (mail($this->to, $this->subject, $this->body)) {
|
|
||||||
|
$phpMailer = new PHPMailer();
|
||||||
|
$phpMailer->isMail();
|
||||||
|
$phpMailer->setFrom('admin@allsidepixels.com', 'admin@allsidepixels.com');
|
||||||
|
$phpMailer->addAddress($this->to);
|
||||||
|
$phpMailer->Subject = $this->subject;
|
||||||
|
$phpMailer->Body = $this->body;
|
||||||
|
|
||||||
|
$sendMail = $phpMailer->send();
|
||||||
|
|
||||||
|
if ($sendMail) {
|
||||||
// Trigger a success notification
|
// Trigger a success notification
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Email Sent')
|
->title('Email Sent')
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
"monarobase/country-list": "^3.5",
|
"monarobase/country-list": "^3.5",
|
||||||
"nwidart/laravel-modules": "^10.0",
|
"nwidart/laravel-modules": "^10.0",
|
||||||
"outerweb/filament-settings": "^1.2",
|
"outerweb/filament-settings": "^1.2",
|
||||||
|
"phpmailer/phpmailer": "^6.9",
|
||||||
"phpseclib/phpseclib": "~3.0",
|
"phpseclib/phpseclib": "~3.0",
|
||||||
"postare/blade-mdi": "^1.1",
|
"postare/blade-mdi": "^1.1",
|
||||||
"riodwanto/filament-ace-editor": "^1.0",
|
"riodwanto/filament-ace-editor": "^1.0",
|
||||||
|
|
Loading…
Reference in a new issue