⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
crm-dev.dev-unit.com
/
main-file
/
app
/
Mail
/
View File Name :
CommonEmailTemplate.php
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; class CommonEmailTemplate extends Mailable { use Queueable, SerializesModels; public $template; public $settings; /** * Create a new message instance. * * @return void */ public function __construct($template, $settings) { $this->template = $template; $this->settings = $settings; } /** * Build the message. * * @return $this */ public function build() { $from = !empty($this->settings['mail_from_name']) ? $this->settings['mail_from_name'] : $this->template->from; return $this->from($this->settings['mail_from_address'], $from)->markdown('email.common_email_template')->subject($this->template->subject)->with( [ 'content' => $this->template->content, 'mail_header' => $this->settings['mail_from_address'], ] ); } }