!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/picomail.picotech.app/public_html/app/EmailProvider/   drwxr-xr-x
Free 28.65 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SendMailProcess.php (2.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\EmailProvider;

use 
App\Models\Campaign;
use 
Illuminate\Support\Facades\Log;

class 
SendMailProcess
{

    private 
$provider;
    public 
$to;
    public 
$from;
    public 
$file;
    public 
$subject;
    public 
$body;
    public 
$message;
    public 
$config;
    private 
$errors;
    private 
$server_config_value;


    public function 
__construct()
    {
        
$this->server_config_value=collect([]);
        
$this->errors=[];
    }
    public function 
getErrors(){
        return 
$this->errors;
    }
    public function 
hasErrors(){
        return 
count($this->errors)>0;
    }
    public function 
serverConfig($config)
    {
        
$this->server_config_value $config[$this->provider];
        return 
$this;
    }

    public function 
setMessage($message)
    {
        
$this->message $message;
        return 
$this;
    }

    public function 
setProvider($provider)
    {
        
$this->provider $provider;
        return 
$this;
    }

    public function 
getTo()
    {
        return isset(
$this->message) ? $this->message->to null;
    }

    public function 
getFrom()
    {
        if(isset(
$this->server_config_value->send_dkim_private_key) && $this->server_config_value->send_dkim_private_key){
            return isset(
$this->message) ? $this->message->from null;
        }else{
            return 
$this->server_config_value->from_email;
        }

    }

    public function 
getFromName()
    {
        return isset(
$this->message) ? ($this->message->from_name?:getNameFromEmail($this->getFrom())) : null;
    }

    public function 
getReplyTo()
    {
        if(isset(
$this->server_config_value->send_dkim_private_key) && $this->server_config_value->send_dkim_private_key){
            return isset(
$this->message) ? $this->message->reply_to null;
        }else{
            return 
$this->server_config_value->from_email;
        }
    }

    public function 
getSubject()
    {
        return isset(
$this->message) ? $this->message->subject null;
    }

    public function 
getBody()
    {
        
$body $this->message->body;
        if (!
$this->message->body) {
            
$body replaceMessageBody($this->message->body$this->message->campaign_id$this->message->id$this->message->template);
        }
        return 
$body;
    }

    public function 
getFiles()
    {
        return isset(
$this->message) ? $this->message->message_files null;
    }

    public function 
process()
    {

        
\App\Events\SendEMail::dispatch(
            
$this->provider,
            
$this->getFrom(),
            
$this->getFromName(),
            
$this->getTo(),
            
$this->getSubject(),
            
$this->getBody(),
            
$this->getReplyTo(),
            
$this->getFiles(),
            
$this->server_config_value,
            
$this->message->id //email_queues id
        
);
        return 
$this;

    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0033 ]--