<?php
/**
 * sendmail.inc.php -- Sending Email Notifications
 */

// ConfirmEmail (SENT TO: Users)[Users API]
function ConfirmEmail(
    $noreply, /* No Reply Email from Config [$noreplyEmail] */
    $site_url, /* URL from Config [$BASE_URL] */
    $email, /* User's Email */
    $fullname, /* User's Full Name */
    $ver_code, /* Confirmation Code */
    $user_id /* User ID */
){
    $to = $email;
    $subject = 'Confirm Email';
    $headers = "From: ".$noreply."\r\n";
    //$headers .= "Reply-To: ". strip_tags($_POST['req-email']) . "\r\n";
    #$headers .= "CC: info@pingxtra.com.ng\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

    $message = '<!DOCTYPE html><html class="no-js" lang="en"><html>';
    $message .= 
        '<head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width" />
            <meta http-equiv="Access-Control-Allow-Origin" content="*">
            <link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
            <link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/spectrum.min.css">
            <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
            <!-- STYLE CSS -->
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/mobile.css">
        
            <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet" />
        </head>';
    $message .= '<body>';
    $message .=
        '<style type="text/css">
            /*------ Client-Specific Style ------ */
            @-ms-viewport{width:device-width;}
            table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;}
            img{-ms-interpolation-mode:bicubic; border: 0;}
            p, a, li, td, blockquote{mso-line-height-rule:exactly;}
            p, a, li, td, body, table, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%;}
            #outlook a{padding:0;}
            .ReadMsgBody{width:100%;} .ExternalClass{width:100%;}
            .ExternalClass,.ExternalClass div,.ExternalClass font,.ExternalClass p,.ExternalClass span,.ExternalClass td,img{line-height:100%;}

            /*------ Reset Style ------ */
            *{-webkit-text-size-adjust:none;-webkit-text-resize:100%;text-resize:100%;}
            table{border-spacing: 0 !important;}
            h1, h2, h3, h4, h5, h6{display:block; Margin:0; padding:0;}
            img, a img{border:0; height:auto; outline:none; text-decoration:none;}
            body, #bodyTable, #bodyCell{height:100%; margin:0; padding:0; width:100%;}

            .appleLinks a {color: #c2c2c2 !important; text-decoration: none;}
            span.preheader { display: none !important; }

            /*------ Google Font Style ------ */
            [style*="Open Sans"] {font-family:\'Open Sans\', Helvetica, Arial, sans-serif !important;}
            [style*="Poppins"] {font-family:\'Poppins\', Helvetica, Arial, sans-serif !important;}
            [style*="Lora"] {font-family:\'Lora\', Georgia, Times, serif !important;}

            /*------ General Style ------ */
            .wrapperWebview, .wrapperBody, .wrapperFooter{width:100%; max-width:600px; Margin:0 auto;}

            /*------ Column Layout Style ------ */
            .tableCard {text-align:center; font-size:0;}
            
            /*------ Images Style ------ */
            .imgHero img{ width:600px; height:auto; }
        </style>';
    $message .=
        '<table border="0" cellpadding="0" cellspacing="0" width="100%"
        style="table-layout: fixed; background-color: rgb(245, 245, 245);" id="bodyTable">
            <tbody>
                <tr>
                    <td align="center" valign="top" style="padding-right:10px;padding-left:10px;" id="bodyCell">
                        <!--[if (gte mso 9)|(IE)]><table align="center" border="0" cellspacing="0" cellpadding="0" style="width:600px;" width="600"><tr><td align="center" valign="top"><![endif]-->';
    $message .=
        '<!-- Email Wrapper Webview Open //-->
        <!-- Email Wrapper Webview Close //-->';
    $message .=
        '<!-- Email Wrapper Header Open //-->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%"
            class="wrapperWebview">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open // -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                                <tr>
                                    <td align="center" valign="middle"
                                        style="padding-top: 40px; padding-bottom: 40px;" class="emailLogo">
                                        <!-- Logo and Link // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'public/images/logo.png"
                                                alt="" width="260" border="0"
                                                style="width: 100%; max-width: 260px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close // -->
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Header Close //-->';
    $message .=
        '<!-- Email Wrapper Body Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperBody">
            <tbody>
                <tr>
                    <td align="center" valign="top">

                        <!-- Table Card Open // -->
                        <table border="0" cellpadding="0" cellspacing="0"
                            style="background-color: rgb(255, 255, 255); border-color: rgb(229, 229, 229); border-style: solid; border-width: 0px 1px 1px;"
                            width="100%" class="tableCard">

                            <tbody>
                                <tr>
                                    <!-- Header Top Border // -->
                                    <td height="3"
                                        style="background-color: rgb(252, 53, 63); font-size: 1px; line-height: 3px;"
                                        class="topBorder">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding-bottom: 20px;"
                                        class="imgHero">
                                        <!-- Hero Image // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'email-assets/images/user-account.png"
                                                width="398" alt="" border="0"
                                                style="width: 100%; max-width: 398px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 5px; padding-left: 20px; padding-right: 20px;"
                                        class="mainTitle">
                                        <!-- Main Title Text // -->
                                        <h2 class="text"
                                            style="color: rgb(0, 0, 0); font-family: \'Open Sans\', Helvetica, Arial, sans-serif; font-size: 28px; font-weight: 600; font-style: normal; letter-spacing: normal; line-height: 36px; text-transform: none; text-align: center; padding: 0px; margin: 0px;">
                                            Hi "'.$fullname.'"
                                        </h2>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 30px; padding-left: 20px; padding-right: 20px;"
                                        class="subTitle">
                                        <!-- Sub Title Text // -->
                                        <h4 class="text"
                                            style="color: rgb(153, 153, 153); font-family: \'Open Sans\', Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; font-style: normal; letter-spacing: normal; line-height: 24px; text-transform: none; text-align: center; padding: 0px; margin: 0px;"
                                            data-font="active">
                                            Verify Your Email Account
                                        </h4>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-left:20px;padding-right:20px;"
                                        class="containtTable ui-sortable">

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDescription" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="description">
                                                        <!-- Description Text// -->
                                                        <p class="text"
                                                            style="color: rgb(102, 102, 102); font-family: \'Open Sans\', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; font-style: normal; letter-spacing: normal; line-height: 22px; text-transform: none; text-align: center; padding: 0px; margin: 0px;">
                                                            Thanks for creating an account with us at
                                                            <b>Criptohopper </b>.Please click
                                                            the "confirm email" button below to verify your
                                                            account.
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableButton" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:20px;padding-bottom:20px;">

                                                        <!-- Button Table // -->
                                                        <table align="center" border="0" cellpadding="0"
                                                            cellspacing="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td align="center" class="ctaButton"
                                                                        style="background-image: linear-gradient(to right, rgb(0, 104, 0) , rgb(170, 212, 170)); padding: 12px 35px; border-radius: 4px;">
                                                                        <!-- Button Link // -->
                                                                        <a class="text"
                                                                            href="'.$site_url.'verify?ver_code='.$ver_code.'&user='.$user_id.'"
                                                                            target="_blank"
                                                                            style="color:#FFFFFF; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:13px; font-weight:600; font-style:normal;letter-spacing:1px; line-height:20px; text-transform:uppercase; text-decoration:none; display:block">
                                                                            Confirm Email
                                                                        </a>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDescription" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="description">
                                                        <!-- Description Text// -->
                                                        <p class="text"
                                                            style="color: rgb(102, 102, 102); font-family: \'Open Sans\', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; font-style: normal; letter-spacing: normal; line-height: 22px; text-transform: none; text-align: center; padding: 0px; margin: 0px;">
                                                            Above "Confirm Email" button not working? Use
                                                            this Link (click or copy and paste into your
                                                            browser): <a
                                                                href="'.$site_url.'verify?ver_code='.$ver_code.'&user='.$user_id.'"
                                                                target="_blank"
                                                                style="color:#3F4CA4">'.$site_url.'verify?ver_code='.$ver_code.'&user='.$user_id.'</a>
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                    </td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Table Card Close// -->

                        <!-- Space -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="space">
                            <tbody>
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>

                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Body Close // -->';
    $message .=
        '<!-- Email Wrapper Footer Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperFooter">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open// -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="footer">
                            <tbody>
                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-top:10px;padding-bottom:10px;padding-left:10px;padding-right:10px;"
                                        class="socialLinks">
                                        <!-- Social Links (Facebook)// -->

                                        <!-- Social Links (Twitter)// -->

                                        <!-- Social Links (Pintrest)// -->

                                        <!-- Social Links (Instagram)// -->

                                        <!-- Social Links (Linkdin)// -->

                                        <a href="#youtube-link" target="_blank"
                                            style="display: inline-block;" class="youtube"><img
                                                src="'.$site_url.'email-assets/images/youtube.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#facebook-link" target="_blank"
                                            style="display: inline-block;" class="facebook"><img
                                                src="'.$site_url.'email-assets/images/facebook.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#instagram-link" target="_blank"
                                            style="display: inline-block;" class="instagram"><img
                                                src="'.$site_url.'email-assets/images/instagram.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#twitter-link" target="_blank"
                                            style="display: inline-block;" class="twitter"><img
                                                src="'.$site_url.'email-assets/images/twitter.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 10px 10px 5px;"
                                        class="brandInfo">
                                        <!-- Brand Information // -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            ©&nbsp;Criptohopper.
                                        </p>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 0px 10px 10px;"
                                        class="footerEmailInfo">
                                        <!-- Information of NewsLetter (Subscribe Info)// -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            If you have any quetions please contact us <a href="#"
                                                style="color:#777777;text-decoration:underline;"
                                                target="_blank">support@criptohopper.live</a>
                                        </p>
                                    </td>
                                </tr>

                                <!-- Space -->
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close// -->
                    </td>
                </tr>

                <!-- Space -->
                <tr>
                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Footer Close // -->';
    $message .= 
        '               <!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
                    </td>
                </tr>
            </tbody>
        </table>';
    $message .= '</body></html>';

    mail($to, $subject, $message, $headers);
    //$url = 'https://www.edugrantng.org/test/asn.mailer.php?confirmemail&to='.$to.'&subject='.$subject.'&message='.$message.'&headers='.$headers;
	//file_get_contents($url);
}



// Welcome To ASN (SENT TO: Users)[Users API]
function WelcomeToASN(
    $noreply, /* No Reply Email from Config [$noreplyEmail] */
    $site_url, /* URL from Config [$BASE_URL_ROOT] */
    $email, /* User's Email */
    $fullname, /* User's Full Name */
    $username, /* Username */
    $plain_pass, /* Plain Password */
    $created /* Date/Time Account Was Created */
){
    $to = $email;
    $subject = 'Welcome To Cripto Hopper';
    $headers = "From: ".$noreply."\r\n";
    //$headers .= "Reply-To: ". strip_tags($_POST['req-email']) . "\r\n";
    #$headers .= "CC: info@pingxtra.com.ng\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

    $message = '<!DOCTYPE html><html class="no-js" lang="en"><html>';
    $message .= 
        '<head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width" />
            <meta http-equiv="Access-Control-Allow-Origin" content="*">
            <link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
            <link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/spectrum.min.css">
            <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
            <!-- STYLE CSS -->
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/mobile.css">
        
            <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet" />
        </head>';
    $message .= '<body>';
    $message .=
        '<style type="text/css">
            /*------ Client-Specific Style ------ */
            @-ms-viewport{width:device-width;}
            table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;}
            img{-ms-interpolation-mode:bicubic; border: 0;}
            p, a, li, td, blockquote{mso-line-height-rule:exactly;}
            p, a, li, td, body, table, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%;}
            #outlook a{padding:0;}
            .ReadMsgBody{width:100%;} .ExternalClass{width:100%;}
            .ExternalClass,.ExternalClass div,.ExternalClass font,.ExternalClass p,.ExternalClass span,.ExternalClass td,img{line-height:100%;}

            /*------ Reset Style ------ */
            *{-webkit-text-size-adjust:none;-webkit-text-resize:100%;text-resize:100%;}
            table{border-spacing: 0 !important;}
            h1, h2, h3, h4, h5, h6{display:block; Margin:0; padding:0;}
            img, a img{border:0; height:auto; outline:none; text-decoration:none;}
            body, #bodyTable, #bodyCell{height:100%; margin:0; padding:0; width:100%;}

            .appleLinks a {color: #c2c2c2 !important; text-decoration: none;}
            span.preheader { display: none !important; }

            /*------ Google Font Style ------ */
            [style*="Open Sans"] {font-family:\'Open Sans\', Helvetica, Arial, sans-serif !important;}
            [style*="Poppins"] {font-family:\'Poppins\', Helvetica, Arial, sans-serif !important;}
            [style*="Lora"] {font-family:\'Lora\', Georgia, Times, serif !important;}

            /*------ General Style ------ */
            .wrapperWebview, .wrapperBody, .wrapperFooter{width:100%; max-width:600px; Margin:0 auto;}

            /*------ Column Layout Style ------ */
            .tableCard {text-align:center; font-size:0;}
            
            /*------ Images Style ------ */
            .imgHero img{ width:600px; height:auto; }
        </style>';
    $message .=
        '<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed;background-color:#F9F9F9;" id="bodyTable">
            <tbody>
                <tr>
                    <td align="center" valign="top" style="padding-right:10px;padding-left:10px;" id="bodyCell">
                        <!--[if (gte mso 9)|(IE)]><table align="center" border="0" cellspacing="0" cellpadding="0" style="width:600px;" width="600"><tr><td align="center" valign="top"><![endif]-->';
    $message .=
        '<!-- Email Wrapper Webview Open //-->
        <!-- Email Wrapper Webview Close //-->';
    $message .=
        '<!-- Email Wrapper Header Open //-->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperWebview">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open // -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                                <tr>
                                    <td align="center" valign="middle"
                                        style="padding-top: 40px; padding-bottom: 40px;" class="emailLogo">
                                        <!-- Logo and Link // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'public/images/logo.png"
                                                alt="" width="260" border="0"
                                                style="width: 100%; max-width: 260px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close // -->
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Header Close //-->';
    $message .=
        '<!-- Email Wrapper Body Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperBody">
            <tbody>
                <tr>
                    <td align="center" valign="top">

                        <!-- Table Card Open // -->
                        <table border="0" cellpadding="0" cellspacing="0"
                            style="background-color:#FFFFFF;border-color:#E5E5E5; border-style:solid; border-width:0 1px 1px 1px;"
                            width="100%" class="tableCard">

                            <tbody>
                                <tr>
                                    <!-- Header Top Border // -->
                                    <td height="3"
                                        style="background-color: rgb(252, 53, 63); font-size: 1px; line-height: 3px;"
                                        class="topBorder">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding-bottom: 20px;"
                                        class="imgHero">
                                        <!-- Hero Image // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'email-assets/images/notification-reminder.png"
                                                width="398" alt="" border="0"
                                                style="width: 100%; max-width: 398px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 5px; padding-left: 20px; padding-right: 20px;"
                                        class="mainTitle">
                                        <!-- Main Title Text // -->
                                        <h2 class="text"
                                            style="color:#000000; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:28px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:36px; text-transform:none; text-align:center; padding:0; margin:0">
                                            Welcome '.$fullname.'
                                        </h2>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 30px; padding-left: 20px; padding-right: 20px;"
                                        class="subTitle">
                                        <!-- Sub Title Text // -->
                                        <h4 class="text"
                                            style="color:#999999; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:16px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:24px; text-transform:none; text-align:center; padding:0; margin:0">
                                            We are happy to have you join us.
                                        </h4>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-left:20px;padding-right:20px;"
                                        class="containtTable ui-sortable">

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDescription" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="description">
                                                        <!-- Description Text// -->
                                                        <p class="text"
                                                            style="color:#666666; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:14px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:22px; text-transform:none; text-align:center; padding:0; margin:0">
                                                            Your account registration and email verification
                                                            was successful. Welcome to <b>Criptohopper</b>.
                                                            <br>Below is your personal details. Do not
                                                            disclose to anyone.
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDivider" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:20px;padding-bottom:40px;">
                                                        <!-- Divider // -->
                                                        <table border="0" cellpadding="0" cellspacing="0"
                                                            width="100%">
                                                            <tbody>
                                                                <tr>
                                                                    <td height="1"
                                                                        style="background-color:#E5E5E5;font-size:1px;line-height:1px;"
                                                                        class="divider">&nbsp;</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableSmllTitle" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 10px;" class="smllTitle">
                                                        <!-- Small Title Text // -->
                                                        <p class="text"
                                                            style="color: rgb(119, 119, 119); font-family: Poppins, Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; font-style: normal; letter-spacing: normal; line-height: 24px; text-transform: none; text-align: center; padding: 0px; margin: 0px;"
                                                            data-font="active">
                                                            Username
                                                        </p>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="smllSubTitle">
                                                        <!-- Info Title Text // -->
                                                        <p class="text"
                                                            style="color: rgb(0, 0, 0); font-family: Poppins, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 500; font-style: normal; letter-spacing: normal; line-height: 22px; text-transform: none; text-align: center; padding: 0px; margin: 0px;">
                                                            '.$username.'
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableSmllTitle" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 10px;" class="smllTitle">
                                                        <!-- Small Title Text // -->
                                                        <p class="text"
                                                            style="color: rgb(119, 119, 119); font-family: Poppins, Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; font-style: normal; letter-spacing: normal; line-height: 24px; text-transform: none; text-align: center; padding: 0px; margin: 0px;">
                                                            Email
                                                        </p>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="smllSubTitle">
                                                        <!-- Info Title Text // -->
                                                        <p class="text"
                                                            style="color: rgb(0, 0, 0); font-family: Poppins, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 500; font-style: normal; letter-spacing: normal; line-height: 22px; text-transform: none; text-align: center; padding: 0px; margin: 0px;">
                                                            '.$email.'
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableSmllTitle" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 10px;" class="smllTitle">
                                                        <!-- Small Title Text // -->
                                                        <p class="text"
                                                            style="color: rgb(119, 119, 119); font-family: Poppins, Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; font-style: normal; letter-spacing: normal; line-height: 24px; text-transform: none; text-align: center; padding: 0px; margin: 0px;">
                                                            Password
                                                        </p>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="smllSubTitle">
                                                        <!-- Info Title Text // -->
                                                        <p class="text"
                                                            style="color: rgb(0, 0, 0); font-family: Poppins, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 500; font-style: normal; letter-spacing: normal; line-height: 22px; text-transform: none; text-align: center; padding: 0px; margin: 0px;">
                                                            '.$plain_pass.'
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDivider" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:20px;padding-bottom:40px;">
                                                        <!-- Divider // -->
                                                        <table border="0" cellpadding="0" cellspacing="0"
                                                            width="100%">
                                                            <tbody>
                                                                <tr>
                                                                    <td height="1"
                                                                        style="background-color:#E5E5E5;font-size:1px;line-height:1px;"
                                                                        class="divider">&nbsp;</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableButtonDate" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:20px;padding-bottom:5px;">
                                                        <!-- Button Table // -->
                                                        <table align="center" border="0" cellpadding="0"
                                                            cellspacing="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td align="center" class="ctaButton"
                                                                        style="background-image: linear-gradient(to right, rgb(0, 104, 0) , rgb(170, 212, 170)); padding: 12px 35px; border-radius: 5px;">
                                                                        <!-- Button Link // -->
                                                                        <a class="text"
                                                                            href="'.$site_url.'signin"
                                                                            target="_blank"
                                                                            style="color:#FFFFFF; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:13px; font-weight:600; font-style:normal;letter-spacing:1px; line-height:20px; text-transform:uppercase; text-decoration:none; display:block">
                                                                            Sign In
                                                                        </a>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="infoDate">
                                                        <!-- Info Date // -->
                                                        <p class="text"
                                                            style="color:#000000; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:11px; font-weight:700; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0">
                                                            Account Created : '.$created.'
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                    </td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Table Card Close// -->

                        <!-- Space -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="space">
                            <tbody>
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>

                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Body Close // -->';
    $message .=
        '<!-- Email Wrapper Footer Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%"
                        class="wrapperFooter">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open// -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="footer">
                            <tbody>
                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-top:10px;padding-bottom:10px;padding-left:10px;padding-right:10px;"
                                        class="socialLinks">
                                        <!-- Social Links (Facebook)// -->

                                        <!-- Social Links (Twitter)// -->

                                        <!-- Social Links (Pintrest)// -->

                                        <!-- Social Links (Instagram)// -->

                                        <!-- Social Links (Linkdin)// -->

                                        <a href="#youtube-link" target="_blank"
                                            style="display:inline-block;" class="youtube"><img
                                                src="'.$site_url.'email-assets/images/youtube.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#facebook-link" target="_blank"
                                            style="display:inline-block;" class="facebook"><img
                                                src="'.$site_url.'email-assets/images/facebook.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#instagram-link" target="_blank"
                                            style="display:inline-block;" class="instagram"><img
                                                src="'.$site_url.'email-assets/images/instagram.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#twitter-link" target="_blank"
                                            style="display:inline-block;" class="twitter"><img
                                                src="'.$site_url.'email-assets/images/twitter.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 10px 10px 5px;"
                                        class="brandInfo">
                                        <!-- Brand Information // -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            ©&nbsp;Criptohopper.</p>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 0px 10px 10px;"
                                        class="footerEmailInfo">
                                        <!-- Information of NewsLetter (Subscribe Info)// -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            If you have any quetions please contact us <a href="#"
                                                style="color:#777777;text-decoration:underline;"
                                                target="_blank">support@criptohopper.live</a>
                                        </p>
                                    </td>
                                </tr>

                                <!-- Space -->
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close// -->
                    </td>
                </tr>

                <!-- Space -->
                <tr>
                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Footer Close // -->';
    $message .= 
        '               <!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
                    </td>
                </tr>
            </tbody>
        </table>';
    $message .= '</body></html>';

    mail($to, $subject, $message, $headers);
    //$url = 'https://www.edugrantng.org/test/asn.mailer.php?welcometoasn&to='.$to.'&subject='.$subject.'&message='.$message.'&headers='.$headers;
	//file_get_contents($url);
}



// Send Mail To User (SENT TO: Users)[Users API]
function SendMailToUser(
    $noreply, /* No Reply Email from Config [$noreplyEmail] */
    $site_url, /* URL from Config [$BASE_URL_ROOT] */
    $email, /* User's Email */
    $fullname, /* User's Full Name */
    $usersubject, /* Custom Subject for User */
    $usermessage /* Custom Message for User */
){
    $to = $email;
    $subject = $usersubject;
    $headers = "From: ".$noreply."\r\n";
    //$headers .= "Reply-To: ". strip_tags($_POST['req-email']) . "\r\n";
    #$headers .= "CC: info@pingxtra.com.ng\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

    $message = '<!DOCTYPE html><html class="no-js" lang="en"><html>';
    $message .= 
        '<head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width" />
            <meta http-equiv="Access-Control-Allow-Origin" content="*">
            <link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
            <link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/spectrum.min.css">
            <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
            <!-- STYLE CSS -->
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/mobile.css">
        
            <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet" />
        </head>';
    $message .= '<body>';
    $message .=
        '<style type="text/css">
            /*------ Client-Specific Style ------ */
            @-ms-viewport{width:device-width;}
            table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;}
            img{-ms-interpolation-mode:bicubic; border: 0;}
            p, a, li, td, blockquote{mso-line-height-rule:exactly;}
            p, a, li, td, body, table, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%;}
            #outlook a{padding:0;}
            .ReadMsgBody{width:100%;} .ExternalClass{width:100%;}
            .ExternalClass,.ExternalClass div,.ExternalClass font,.ExternalClass p,.ExternalClass span,.ExternalClass td,img{line-height:100%;}

            /*------ Reset Style ------ */
            *{-webkit-text-size-adjust:none;-webkit-text-resize:100%;text-resize:100%;}
            table{border-spacing: 0 !important;}
            h1, h2, h3, h4, h5, h6{display:block; Margin:0; padding:0;}
            img, a img{border:0; height:auto; outline:none; text-decoration:none;}
            body, #bodyTable, #bodyCell{height:100%; margin:0; padding:0; width:100%;}

            .appleLinks a {color: #c2c2c2 !important; text-decoration: none;}
            span.preheader { display: none !important; }

            /*------ Google Font Style ------ */
            [style*="Open Sans"] {font-family:\'Open Sans\', Helvetica, Arial, sans-serif !important;}
            [style*="Poppins"] {font-family:\'Poppins\', Helvetica, Arial, sans-serif !important;}
            [style*="Lora"] {font-family:\'Lora\', Georgia, Times, serif !important;}

            /*------ General Style ------ */
            .wrapperWebview, .wrapperBody, .wrapperFooter{width:100%; max-width:600px; Margin:0 auto;}

            /*------ Column Layout Style ------ */
            .tableCard {text-align:center; font-size:0;}
            
            /*------ Images Style ------ */
            .imgHero img{ width:600px; height:auto; }
        </style>';
    $message .=
        '<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed;background-color:#F9F9F9;" id="bodyTable">
            <tbody>
                <tr>
                    <td align="center" valign="top" style="padding-right:10px;padding-left:10px;" id="bodyCell">
                        <!--[if (gte mso 9)|(IE)]><table align="center" border="0" cellspacing="0" cellpadding="0" style="width:600px;" width="600"><tr><td align="center" valign="top"><![endif]-->';
    $message .=
        '<!-- Email Wrapper Webview Open //-->
        <!-- Email Wrapper Webview Close //-->';
    $message .=
        '<!-- Email Wrapper Header Open //-->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperWebview">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open // -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                                <tr>
                                    <td align="center" valign="middle"
                                        style="padding-top: 40px; padding-bottom: 40px;" class="emailLogo">
                                        <!-- Logo and Link // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'public/images/logo.png"
                                                alt="" width="260" border="0"
                                                style="width: 100%; max-width: 260px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close // -->
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Header Close //-->';
    $message .=
        '<!-- Email Wrapper Body Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperBody">
            <tbody>
                <tr>
                    <td align="center" valign="top">

                        <!-- Table Card Open // -->
                        <table border="0" cellpadding="0" cellspacing="0"
                            style="background-color:#FFFFFF;border-color:#E5E5E5; border-style:solid; border-width:0 1px 1px 1px;"
                            width="100%" class="tableCard">

                            <tbody>
                                <tr>
                                    <!-- Header Top Border // -->
                                    <td height="3"
                                        style="background-color: rgb(252, 53, 63); font-size: 1px; line-height: 3px;"
                                        class="topBorder">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding-bottom: 20px;"
                                        class="imgHero">
                                        <!-- Hero Image // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'email-assets/images/notification-reminder.png"
                                                width="398" alt="" border="0"
                                                style="width: 100%; max-width: 398px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 5px; padding-left: 20px; padding-right: 20px;"
                                        class="mainTitle">
                                        <!-- Main Title Text // -->
                                        <h2 class="text"
                                            style="color:#000000; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:28px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:36px; text-transform:none; text-align:center; padding:0; margin:0">
                                            Hello again '.$fullname.'
                                        </h2>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 30px; padding-left: 20px; padding-right: 20px;"
                                        class="subTitle">
                                        <!-- Sub Title Text // -->
                                        <h4 class="text"
                                            style="color:#999999; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:16px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:24px; text-transform:none; text-align:center; padding:0; margin:0">
                                            We are still happy to have you with us.
                                        </h4>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-left:20px;padding-right:20px;"
                                        class="containtTable ui-sortable">

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDescription" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="description">
                                                        <!-- Description Text// -->
                                                        <p class="text"
                                                            style="color:#666666; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:14px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:22px; text-transform:none; text-align:center; padding:0; margin:0">
                                                            '.$usermessage.'
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDivider" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:20px;padding-bottom:40px;">
                                                        <!-- Divider // -->
                                                        <table border="0" cellpadding="0" cellspacing="0"
                                                            width="100%">
                                                            <tbody>
                                                                <tr>
                                                                    <td height="1"
                                                                        style="background-color:#E5E5E5;font-size:1px;line-height:1px;"
                                                                        class="divider">&nbsp;</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Table Card Close// -->

                        <!-- Space -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="space">
                            <tbody>
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>

                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Body Close // -->';
    $message .=
        '<!-- Email Wrapper Footer Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%"
                        class="wrapperFooter">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open// -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="footer">
                            <tbody>
                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-top:10px;padding-bottom:10px;padding-left:10px;padding-right:10px;"
                                        class="socialLinks">
                                        <!-- Social Links (Facebook)// -->

                                        <!-- Social Links (Twitter)// -->

                                        <!-- Social Links (Pintrest)// -->

                                        <!-- Social Links (Instagram)// -->

                                        <!-- Social Links (Linkdin)// -->

                                        <a href="#youtube-link" target="_blank"
                                            style="display:inline-block;" class="youtube"><img
                                                src="'.$site_url.'email-assets/images/youtube.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#facebook-link" target="_blank"
                                            style="display:inline-block;" class="facebook"><img
                                                src="'.$site_url.'email-assets/images/facebook.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#instagram-link" target="_blank"
                                            style="display:inline-block;" class="instagram"><img
                                                src="'.$site_url.'email-assets/images/instagram.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#twitter-link" target="_blank"
                                            style="display:inline-block;" class="twitter"><img
                                                src="'.$site_url.'email-assets/images/twitter.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 10px 10px 5px;"
                                        class="brandInfo">
                                        <!-- Brand Information // -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            ©&nbsp;Criptohopper</p>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 0px 10px 10px;"
                                        class="footerEmailInfo">
                                        <!-- Information of NewsLetter (Subscribe Info)// -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            If you have any quetions please contact us <a href="#"
                                                style="color:#777777;text-decoration:underline;"
                                                target="_blank">support@criptohopper.live</a>
                                        </p>
                                    </td>
                                </tr>

                                <!-- Space -->
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close// -->
                    </td>
                </tr>

                <!-- Space -->
                <tr>
                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Footer Close // -->';
    $message .= 
        '               <!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
                    </td>
                </tr>
            </tbody>
        </table>';
    $message .= '</body></html>';

    mail($to, $subject, $message, $headers);
    //$url = 'https://www.edugrantng.org/test/asn.mailer.php?welcometoasn&to='.$to.'&subject='.$subject.'&message='.$message.'&headers='.$headers;
	//file_get_contents($url);
}



// Upgrade Request To User (SENT TO: Users)[Admin API]
function UpgradeRequest(
    $noreply, /* No Reply Email from Config [$noreplyEmail] */
    $site_url, /* URL from Config [$BASE_URL_ROOT] */
    $email, /* User's Email */
    $fullname, /* User's Full Name */
    $usersubject, /* Custom Subject for User */
    $plan /* New Plan for User */
){
    $to = $email;
    $subject = $usersubject;
    $headers = "From: ".$noreply."\r\n";
    //$headers .= "Reply-To: ". strip_tags($_POST['req-email']) . "\r\n";
    #$headers .= "CC: info@pingxtra.com.ng\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

    $message = '<!DOCTYPE html><html class="no-js" lang="en"><html>';
    $message .= 
        '<head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width" />
            <meta http-equiv="Access-Control-Allow-Origin" content="*">
            <link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
            <link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/spectrum.min.css">
            <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
            <!-- STYLE CSS -->
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/mobile.css">
        
            <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet" />
        </head>';
    $message .= '<body>';
    $message .=
        '<style type="text/css">
            /*------ Client-Specific Style ------ */
            @-ms-viewport{width:device-width;}
            table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;}
            img{-ms-interpolation-mode:bicubic; border: 0;}
            p, a, li, td, blockquote{mso-line-height-rule:exactly;}
            p, a, li, td, body, table, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%;}
            #outlook a{padding:0;}
            .ReadMsgBody{width:100%;} .ExternalClass{width:100%;}
            .ExternalClass,.ExternalClass div,.ExternalClass font,.ExternalClass p,.ExternalClass span,.ExternalClass td,img{line-height:100%;}

            /*------ Reset Style ------ */
            *{-webkit-text-size-adjust:none;-webkit-text-resize:100%;text-resize:100%;}
            table{border-spacing: 0 !important;}
            h1, h2, h3, h4, h5, h6{display:block; Margin:0; padding:0;}
            img, a img{border:0; height:auto; outline:none; text-decoration:none;}
            body, #bodyTable, #bodyCell{height:100%; margin:0; padding:0; width:100%;}

            .appleLinks a {color: #c2c2c2 !important; text-decoration: none;}
            span.preheader { display: none !important; }

            /*------ Google Font Style ------ */
            [style*="Open Sans"] {font-family:\'Open Sans\', Helvetica, Arial, sans-serif !important;}
            [style*="Poppins"] {font-family:\'Poppins\', Helvetica, Arial, sans-serif !important;}
            [style*="Lora"] {font-family:\'Lora\', Georgia, Times, serif !important;}

            /*------ General Style ------ */
            .wrapperWebview, .wrapperBody, .wrapperFooter{width:100%; max-width:600px; Margin:0 auto;}

            /*------ Column Layout Style ------ */
            .tableCard {text-align:center; font-size:0;}
            
            /*------ Images Style ------ */
            .imgHero img{ width:600px; height:auto; }
        </style>';
    $message .=
        '<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed;background-color:#F9F9F9;" id="bodyTable">
            <tbody>
                <tr>
                    <td align="center" valign="top" style="padding-right:10px;padding-left:10px;" id="bodyCell">
                        <!--[if (gte mso 9)|(IE)]><table align="center" border="0" cellspacing="0" cellpadding="0" style="width:600px;" width="600"><tr><td align="center" valign="top"><![endif]-->';
    $message .=
        '<!-- Email Wrapper Webview Open //-->
        <!-- Email Wrapper Webview Close //-->';
    $message .=
        '<!-- Email Wrapper Header Open //-->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperWebview">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open // -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                                <tr>
                                    <td align="center" valign="middle"
                                        style="padding-top: 40px; padding-bottom: 40px;" class="emailLogo">
                                        <!-- Logo and Link // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'public/images/logo.png"
                                                alt="" width="260" border="0"
                                                style="width: 100%; max-width: 260px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close // -->
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Header Close //-->';
    $message .=
        '<!-- Email Wrapper Body Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperBody">
            <tbody>
                <tr>
                    <td align="center" valign="top">

                        <!-- Table Card Open // -->
                        <table border="0" cellpadding="0" cellspacing="0"
                            style="background-color:#FFFFFF;border-color:#E5E5E5; border-style:solid; border-width:0 1px 1px 1px;"
                            width="100%" class="tableCard">

                            <tbody>
                                <tr>
                                    <!-- Header Top Border // -->
                                    <td height="3"
                                        style="background-color: rgb(252, 53, 63); font-size: 1px; line-height: 3px;"
                                        class="topBorder">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding-bottom: 20px;"
                                        class="imgHero">
                                        <!-- Hero Image // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'email-assets/images/notification-reminder.png"
                                                width="398" alt="" border="0"
                                                style="width: 100%; max-width: 398px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 5px; padding-left: 20px; padding-right: 20px;"
                                        class="mainTitle">
                                        <!-- Main Title Text // -->
                                        <h2 class="text"
                                            style="color:#000000; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:28px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:36px; text-transform:none; text-align:center; padding:0; margin:0">
                                            Hello again '.$fullname.'
                                        </h2>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 30px; padding-left: 20px; padding-right: 20px;"
                                        class="subTitle">
                                        <!-- Sub Title Text // -->
                                        <h4 class="text"
                                            style="color:#999999; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:16px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:24px; text-transform:none; text-align:center; padding:0; margin:0">
                                            Upgrade Request Notification
                                        </h4>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-left:20px;padding-right:20px;"
                                        class="containtTable ui-sortable">

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDescription" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="description">
                                                        <!-- Description Text// -->
                                                        <p class="text"
                                                            style="color:#666666; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:14px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:22px; text-transform:none; text-align:center; padding:0; margin:0">
                                                            We are happy to inform you that your request for your account to be upgraded to <b>'.$plan.'</b> has been approved. Upon login, your "account status" will reflect the plan upgraded to.<br>
                                                            Kind regards.
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDivider" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:20px;padding-bottom:40px;">
                                                        <!-- Divider // -->
                                                        <table border="0" cellpadding="0" cellspacing="0"
                                                            width="100%">
                                                            <tbody>
                                                                <tr>
                                                                    <td height="1"
                                                                        style="background-color:#E5E5E5;font-size:1px;line-height:1px;"
                                                                        class="divider">&nbsp;</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Table Card Close// -->

                        <!-- Space -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="space">
                            <tbody>
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>

                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Body Close // -->';
    $message .=
        '<!-- Email Wrapper Footer Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%"
                        class="wrapperFooter">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open// -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="footer">
                            <tbody>
                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-top:10px;padding-bottom:10px;padding-left:10px;padding-right:10px;"
                                        class="socialLinks">
                                        <!-- Social Links (Facebook)// -->

                                        <!-- Social Links (Twitter)// -->

                                        <!-- Social Links (Pintrest)// -->

                                        <!-- Social Links (Instagram)// -->

                                        <!-- Social Links (Linkdin)// -->

                                        <a href="#youtube-link" target="_blank"
                                            style="display:inline-block;" class="youtube"><img
                                                src="'.$site_url.'email-assets/images/youtube.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#facebook-link" target="_blank"
                                            style="display:inline-block;" class="facebook"><img
                                                src="'.$site_url.'email-assets/images/facebook.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#instagram-link" target="_blank"
                                            style="display:inline-block;" class="instagram"><img
                                                src="'.$site_url.'email-assets/images/instagram.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#twitter-link" target="_blank"
                                            style="display:inline-block;" class="twitter"><img
                                                src="'.$site_url.'email-assets/images/twitter.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 10px 10px 5px;"
                                        class="brandInfo">
                                        <!-- Brand Information // -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            ©&nbsp;Cripto Hopper</p>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 0px 10px 10px;"
                                        class="footerEmailInfo">
                                        <!-- Information of NewsLetter (Subscribe Info)// -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            If you have any quetions please contact us <a href="#"
                                                style="color:#777777;text-decoration:underline;"
                                                target="_blank">support@criptohopper.live</a>
                                        </p>
                                    </td>
                                </tr>

                                <!-- Space -->
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close// -->
                    </td>
                </tr>

                <!-- Space -->
                <tr>
                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Footer Close // -->';
    $message .= 
        '               <!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
                    </td>
                </tr>
            </tbody>
        </table>';
    $message .= '</body></html>';

    mail($to, $subject, $message, $headers);
}



// Deposit & Withdrawal Status To User (SENT TO: Users)[Admin API and On-page for "Active Deposit" entry]
function DWStatus(
    $noreply, /* No Reply Email from Config [$noreplyEmail] */
    $site_url, /* URL from Config [$BASE_URL_ROOT] */
    $email, /* User's Email */
    $fullname, /* User's Full Name */
    $trans_type, /* Transaction Type */
    $trans_amount, /* Transaction Amount */
    $trans_currency, /* Transaction Currency (User's default currency) */
    $trans_narration, /* Transaction Narration */
    $trans_datetime, /* Transaction Date & Time */
    $trans_paymethod, /* Transaction Payment Method */
    $trans_status /* Transaction Status */
){
    $to = $email;
    $subject = 'Criptohopper Notifications';
    $headers = "From: ".$noreply."\r\n";
    //$headers .= "Reply-To: ". strip_tags($_POST['req-email']) . "\r\n";
    #$headers .= "CC: info@pingxtra.com.ng\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

    $message = '<!DOCTYPE html><html class="no-js" lang="en"><html>';
    $message .= 
        '<head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width" />
            <meta http-equiv="Access-Control-Allow-Origin" content="*">
            <link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
            <link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/spectrum.min.css">
            <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
            <!-- STYLE CSS -->
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/mobile.css">
        
            <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet" />
        </head>';
    $message .= '<body>';
    $message .=
        '<style type="text/css">
            /*------ Client-Specific Style ------ */
            @-ms-viewport{width:device-width;}
            table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;}
            img{-ms-interpolation-mode:bicubic; border: 0;}
            p, a, li, td, blockquote{mso-line-height-rule:exactly;}
            p, a, li, td, body, table, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%;}
            #outlook a{padding:0;}
            .ReadMsgBody{width:100%;} .ExternalClass{width:100%;}
            .ExternalClass,.ExternalClass div,.ExternalClass font,.ExternalClass p,.ExternalClass span,.ExternalClass td,img{line-height:100%;}

            /*------ Reset Style ------ */
            *{-webkit-text-size-adjust:none;-webkit-text-resize:100%;text-resize:100%;}
            table{border-spacing: 0 !important;}
            h1, h2, h3, h4, h5, h6{display:block; Margin:0; padding:0;}
            img, a img{border:0; height:auto; outline:none; text-decoration:none;}
            body, #bodyTable, #bodyCell{height:100%; margin:0; padding:0; width:100%;}

            .appleLinks a {color: #c2c2c2 !important; text-decoration: none;}
            span.preheader { display: none !important; }

            /*------ Google Font Style ------ */
            [style*="Open Sans"] {font-family:\'Open Sans\', Helvetica, Arial, sans-serif !important;}
            [style*="Poppins"] {font-family:\'Poppins\', Helvetica, Arial, sans-serif !important;}
            [style*="Lora"] {font-family:\'Lora\', Georgia, Times, serif !important;}

            /*------ General Style ------ */
            .wrapperWebview, .wrapperBody, .wrapperFooter{width:100%; max-width:600px; Margin:0 auto;}

            /*------ Column Layout Style ------ */
            .tableCard {text-align:center; font-size:0;}
            
            /*------ Images Style ------ */
            .imgHero img{ width:600px; height:auto; }
        </style>';
    $message .=
        '<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed;background-color:#F9F9F9;" id="bodyTable">
            <tbody>
                <tr>
                    <td align="center" valign="top" style="padding-right:10px;padding-left:10px;" id="bodyCell">
                        <!--[if (gte mso 9)|(IE)]><table align="center" border="0" cellspacing="0" cellpadding="0" style="width:600px;" width="600"><tr><td align="center" valign="top"><![endif]-->';
    $message .=
        '<!-- Email Wrapper Webview Open //-->
        <!-- Email Wrapper Webview Close //-->';
    $message .=
        '<!-- Email Wrapper Header Open //-->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperWebview">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open // -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                                <tr>
                                    <td align="center" valign="middle"
                                        style="padding-top: 40px; padding-bottom: 40px;" class="emailLogo">
                                        <!-- Logo and Link // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'public/images/logo.png"
                                                alt="" width="260" border="0"
                                                style="width: 100%; max-width: 260px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close // -->
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Header Close //-->';
    $message .=
        '<!-- Email Wrapper Body Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperBody">
            <tbody>
                <tr>
                    <td align="center" valign="top">

                        <!-- Table Card Open // -->
                        <table border="0" cellpadding="0" cellspacing="0"
                            style="background-color:#FFFFFF;border-color:#E5E5E5; border-style:solid; border-width:0 1px 1px 1px;"
                            width="100%" class="tableCard">

                            <tbody>
                                <tr>
                                    <!-- Header Top Border // -->
                                    <td height="3"
                                        style="background-color: rgb(252, 53, 63); font-size: 1px; line-height: 3px;"
                                        class="topBorder">&nbsp;</td>
                                </tr>

                                <!--<tr>
                                    <td align="center" valign="top" style="padding-bottom: 20px;"
                                        class="imgHero">-->
                                        <!-- Hero Image // -->
                                        <!--<a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'email-assets/images/notification-reminder.png"
                                                width="398" alt="" border="0"
                                                style="width: 100%; max-width: 398px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>-->

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 5px; padding-left: 20px; padding-right: 20px;"
                                        class="mainTitle">
                                        <!-- Main Title Text // -->
                                        <h2 class="text"
                                            style="color:#000000; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:28px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:36px; text-transform:none; text-align:center; padding:0; margin:0"><br>
                                            Hi '.$fullname.'
                                        </h2>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 30px; padding-left: 20px; padding-right: 20px;"
                                        class="subTitle">
                                        <!-- Sub Title Text // -->
                                        <h4 class="text"
                                            style="color:#999999; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:16px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:24px; text-transform:none; text-align:center; padding:0; margin:0">
                                            Transaction Notification
                                        </h4>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-left:20px;padding-right:20px;"
                                        class="containtTable ui-sortable">

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDescription" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="description">
                                                        <!-- Description Text// -->
                                                        <p class="text"
                                                            style="color:#666666; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:14px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:22px; text-transform:none; text-align:center; padding:0; margin:0">
                                                            This is to inform you that a transaction has occurred on your account. The transaction was '.strtolower($trans_status).'.
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDivider" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:20px;padding-bottom:40px;">
                                                        <!-- Divider // -->
                                                        <table border="0" cellpadding="0" cellspacing="0"
                                                            width="100%">
                                                            <tbody>
                                                                <tr>
                                                                    <td height="1"
                                                                        style="background-color:#E5E5E5;font-size:1px;line-height:1px;"
                                                                        class="divider">&nbsp;</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDescription" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="description">
                                                        <p class="text"
                                                            style="color:#666666; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:14px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:32px; text-transform:none; text-align:left; padding:0; margin:0">
                                                            <b style="padding-left: 5%!important;">Account Name: </b>'.$fullname.'<br>
                                                            <b style="padding-left: 5%!important;">Transaction Type: </b>'.$trans_type.'<br>
                                                            <b style="padding-left: 5%!important;">Transaction Amount: </b>'.number_format($trans_amount, 2).'<br>
                                                            <b style="padding-left: 5%!important;">Transaction Currency: </b>'.$trans_currency.'<br>
                                                            <b style="padding-left: 5%!important;">Transaction Narration: </b>'.$trans_narration.'<br>
                                                            <b style="padding-left: 5%!important;">Date and Time: </b>'.$trans_datetime.'<br>
                                                            <b style="padding-left: 5%!important;">Payment Method: </b>'.$trans_paymethod.'<br>
                                                            <b style="padding-left: 5%!important;">Transaction Status: </b>'.strtoupper($trans_status).'
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDivider" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:20px;padding-bottom:40px;">
                                                        <!-- Divider // -->
                                                        <table border="0" cellpadding="0" cellspacing="0"
                                                            width="100%">
                                                            <tbody>
                                                                <tr>
                                                                    <td height="1"
                                                                        style="background-color:#E5E5E5;font-size:1px;line-height:1px;"
                                                                        class="divider">&nbsp;</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                        class="tableButton" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:-2px;padding-bottom:20px;">

                                                        <!-- Button Table // -->
                                                        <table align="center" border="0" cellpadding="0"
                                                            cellspacing="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td align="center" class="ctaButton"
                                                                        style="background-image: linear-gradient(to right, rgb(0, 104, 0) , rgb(170, 212, 170)); padding: 12px 35px; border-radius: 4px;">
                                                                        <!-- Button Link // -->
                                                                        <a class="text"
                                                                            href="'.$site_url.'signin"
                                                                            target="_blank"
                                                                            style="color:#FFFFFF; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:13px; font-weight:600; font-style:normal;letter-spacing:1px; line-height:20px; text-transform:uppercase; text-decoration:none; display:block">
                                                                            Log In
                                                                        </a>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDescription" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="description">
                                                        <!-- Description Text// -->
                                                        <p class="text"
                                                            style="color: rgb(102, 102, 102); font-family: \'Open Sans\', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; font-style: normal; letter-spacing: normal; line-height: 22px; text-transform: none; text-align: center; padding: 0px; margin: 0px;">
                                                            Click the "Log In" button above to log into <b>Criptohopper</b> to view your transaction at: <a
                                                                href="'.$site_url.'signin"
                                                                target="_blank"
                                                                style="color:#3F4CA4">'.$site_url.'signin</a>
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Table Card Close// -->

                        <!-- Space -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="space">
                            <tbody>
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>

                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Body Close // -->';
    $message .=
        '<!-- Email Wrapper Footer Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%"
                        class="wrapperFooter">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open// -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="footer">
                            <tbody>
                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-top:10px;padding-bottom:10px;padding-left:10px;padding-right:10px;"
                                        class="socialLinks">
                                        <!-- Social Links (Facebook)// -->

                                        <!-- Social Links (Twitter)// -->

                                        <!-- Social Links (Pintrest)// -->

                                        <!-- Social Links (Instagram)// -->

                                        <!-- Social Links (Linkdin)// -->

                                        <a href="#youtube-link" target="_blank"
                                            style="display:inline-block;" class="youtube"><img
                                                src="'.$site_url.'email-assets/images/youtube.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#facebook-link" target="_blank"
                                            style="display:inline-block;" class="facebook"><img
                                                src="'.$site_url.'email-assets/images/facebook.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#instagram-link" target="_blank"
                                            style="display:inline-block;" class="instagram"><img
                                                src="'.$site_url.'email-assets/images/instagram.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#twitter-link" target="_blank"
                                            style="display:inline-block;" class="twitter"><img
                                                src="'.$site_url.'email-assets/images/twitter.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 10px 10px 5px;"
                                        class="brandInfo">
                                        <!-- Brand Information // -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            ©&nbsp;Criptohopper.</p>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 0px 10px 10px;"
                                        class="footerEmailInfo">
                                        <!-- Information of NewsLetter (Subscribe Info)// -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            If you have any quetions please contact us <a href="#"
                                                style="color:#777777;text-decoration:underline;"
                                                target="_blank">support@criptohopper.live</a>
                                        </p>
                                    </td>
                                </tr>

                                <!-- Space -->
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close// -->
                    </td>
                </tr>

                <!-- Space -->
                <tr>
                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Footer Close // -->';
    $message .= 
        '               <!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
                    </td>
                </tr>
            </tbody>
        </table>';
    $message .= '</body></html>';

    mail($to, $subject, $message, $headers);
}



// Account Verification Status To User (SENT TO: Users)[Admin API]
function AccountVerificationStatus(
    $noreply, /* No Reply Email from Config [$noreplyEmail] */
    $site_url, /* URL from Config [$BASE_URL_ROOT] */
    $email, /* User's Email */
    $fullname, /* User's Full Name */
    $verify_status /* Verification Status */
){
    $to = $email;
    $subject = 'Cripto Hopper Notifications';
    $headers = "From: ".$noreply."\r\n";
    //$headers .= "Reply-To: ". strip_tags($_POST['req-email']) . "\r\n";
    #$headers .= "CC: info@pingxtra.com.ng\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

    $message = '<!DOCTYPE html><html class="no-js" lang="en"><html>';
    $message .= 
        '<head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width" />
            <meta http-equiv="Access-Control-Allow-Origin" content="*">
            <link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
            <link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/spectrum.min.css">
            <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
            <!-- STYLE CSS -->
            <link rel="stylesheet" type="text/css" href="'.$site_url.'email-assets/css/mobile.css">
        
            <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet" />
            <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet" />
        </head>';
    $message .= '<body>';
    $message .=
        '<style type="text/css">
            /*------ Client-Specific Style ------ */
            @-ms-viewport{width:device-width;}
            table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;}
            img{-ms-interpolation-mode:bicubic; border: 0;}
            p, a, li, td, blockquote{mso-line-height-rule:exactly;}
            p, a, li, td, body, table, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%;}
            #outlook a{padding:0;}
            .ReadMsgBody{width:100%;} .ExternalClass{width:100%;}
            .ExternalClass,.ExternalClass div,.ExternalClass font,.ExternalClass p,.ExternalClass span,.ExternalClass td,img{line-height:100%;}

            /*------ Reset Style ------ */
            *{-webkit-text-size-adjust:none;-webkit-text-resize:100%;text-resize:100%;}
            table{border-spacing: 0 !important;}
            h1, h2, h3, h4, h5, h6{display:block; Margin:0; padding:0;}
            img, a img{border:0; height:auto; outline:none; text-decoration:none;}
            body, #bodyTable, #bodyCell{height:100%; margin:0; padding:0; width:100%;}

            .appleLinks a {color: #c2c2c2 !important; text-decoration: none;}
            span.preheader { display: none !important; }

            /*------ Google Font Style ------ */
            [style*="Open Sans"] {font-family:\'Open Sans\', Helvetica, Arial, sans-serif !important;}
            [style*="Poppins"] {font-family:\'Poppins\', Helvetica, Arial, sans-serif !important;}
            [style*="Lora"] {font-family:\'Lora\', Georgia, Times, serif !important;}

            /*------ General Style ------ */
            .wrapperWebview, .wrapperBody, .wrapperFooter{width:100%; max-width:600px; Margin:0 auto;}

            /*------ Column Layout Style ------ */
            .tableCard {text-align:center; font-size:0;}
            
            /*------ Images Style ------ */
            .imgHero img{ width:600px; height:auto; }
        </style>';
    $message .=
        '<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed;background-color:#F9F9F9;" id="bodyTable">
            <tbody>
                <tr>
                    <td align="center" valign="top" style="padding-right:10px;padding-left:10px;" id="bodyCell">
                        <!--[if (gte mso 9)|(IE)]><table align="center" border="0" cellspacing="0" cellpadding="0" style="width:600px;" width="600"><tr><td align="center" valign="top"><![endif]-->';
    $message .=
        '<!-- Email Wrapper Webview Open //-->
        <!-- Email Wrapper Webview Close //-->';
    $message .=
        '<!-- Email Wrapper Header Open //-->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperWebview">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open // -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                                <tr>
                                    <td align="center" valign="middle"
                                        style="padding-top: 40px; padding-bottom: 40px;" class="emailLogo">
                                        <!-- Logo and Link // -->
                                        <a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'public/images/logo.png"
                                                alt="" width="260" border="0"
                                                style="width: 100%; max-width: 260px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close // -->
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Header Close //-->';
    $message .=
        '<!-- Email Wrapper Body Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%" class="wrapperBody">
            <tbody>
                <tr>
                    <td align="center" valign="top">

                        <!-- Table Card Open // -->
                        <table border="0" cellpadding="0" cellspacing="0"
                            style="background-color:#FFFFFF;border-color:#E5E5E5; border-style:solid; border-width:0 1px 1px 1px;"
                            width="100%" class="tableCard">

                            <tbody>
                                <tr>
                                    <!-- Header Top Border // -->
                                    <td height="3"
                                        style="background-color: rgb(252, 53, 63); font-size: 1px; line-height: 3px;"
                                        class="topBorder">&nbsp;</td>
                                </tr>

                                <!--<tr>
                                    <td align="center" valign="top" style="padding-bottom: 20px;"
                                        class="imgHero">-->
                                        <!-- Hero Image // -->
                                        <!--<a href="#" target="_blank" style="text-decoration:none;" class="">
                                            <img src="'.$site_url.'email-assets/images/notification-reminder.png"
                                                width="398" alt="" border="0"
                                                style="width: 100%; max-width: 398px; height: auto; display: block;"
                                                class="">
                                        </a>
                                    </td>
                                </tr>-->

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 5px; padding-left: 20px; padding-right: 20px;"
                                        class="mainTitle">
                                        <!-- Main Title Text // -->
                                        <h2 class="text"
                                            style="color:#000000; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:28px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:36px; text-transform:none; text-align:center; padding:0; margin:0">
                                            <br>
                                            Hi '.$fullname.'
                                        </h2>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-bottom: 30px; padding-left: 20px; padding-right: 20px;"
                                        class="subTitle">
                                        <!-- Sub Title Text // -->
                                        <h4 class="text"
                                            style="color:#999999; font-family:\'Poppins\', Helvetica, Arial, sans-serif; font-size:16px; font-weight:500; font-style:normal; letter-spacing:normal; line-height:24px; text-transform:none; text-align:center; padding:0; margin:0">
                                            Accocunt Verification Notification
                                        </h4>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-left:20px;padding-right:20px;"
                                        class="containtTable ui-sortable">

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDescription" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-bottom: 20px;" class="description">
                                                        <!-- Description Text// -->
                                                        <p class="text"
                                                            style="color:#666666; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:18px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:22px; text-transform:none; text-align:center; padding:0; margin:0">
                                                            This is to inform you that the documents you submitted for verification has been reviewed.<br>
                                                            Your verification request was <b>'.$verify_status.'</b>.
                                                        </p>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                        <table border="0" cellpadding="0" cellspacing="0" width="100%"
                                            class="tableDivider" style="">
                                            <tbody>
                                                <tr>
                                                    <td align="center" valign="top"
                                                        style="padding-top:20px;padding-bottom:40px;">
                                                        <!-- Divider // -->
                                                        <table border="0" cellpadding="0" cellspacing="0"
                                                            width="100%">
                                                            <tbody>
                                                                <tr>
                                                                    <td height="1"
                                                                        style="background-color:#E5E5E5;font-size:1px;line-height:1px;"
                                                                        class="divider">&nbsp;</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>

                                <tr>
                                    <td height="20" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Table Card Close// -->

                        <!-- Space -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="space">
                            <tbody>
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>

                    </td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Body Close // -->';
    $message .=
        '<!-- Email Wrapper Footer Open // -->
        <table border="0" cellpadding="0" cellspacing="0" style="max-width:600px;" width="100%"
                        class="wrapperFooter">
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <!-- Content Table Open// -->
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="footer">
                            <tbody>
                                <tr>
                                    <td align="center" valign="top"
                                        style="padding-top:10px;padding-bottom:10px;padding-left:10px;padding-right:10px;"
                                        class="socialLinks">
                                        <!-- Social Links (Facebook)// -->

                                        <!-- Social Links (Twitter)// -->

                                        <!-- Social Links (Pintrest)// -->

                                        <!-- Social Links (Instagram)// -->

                                        <!-- Social Links (Linkdin)// -->

                                        <a href="#youtube-link" target="_blank"
                                            style="display:inline-block;" class="youtube"><img
                                                src="'.$site_url.'email-assets/images/youtube.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#facebook-link" target="_blank"
                                            style="display:inline-block;" class="facebook"><img
                                                src="'.$site_url.'email-assets/images/facebook.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#instagram-link" target="_blank"
                                            style="display:inline-block;" class="instagram"><img
                                                src="'.$site_url.'email-assets/images/instagram.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a><a
                                            href="#twitter-link" target="_blank"
                                            style="display:inline-block;" class="twitter"><img
                                                src="'.$site_url.'email-assets/images/twitter.png"
                                                alt="" width="40" border="0"
                                                style="height:auto; width:100%; max-width:40px; margin-left:2px; margin-right:2px"></a>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 10px 10px 5px;"
                                        class="brandInfo">
                                        <!-- Brand Information // -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            ©&nbsp;Criptohopper.</p>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="center" valign="top" style="padding: 0px 10px 10px;"
                                        class="footerEmailInfo">
                                        <!-- Information of NewsLetter (Subscribe Info)// -->
                                        <p class="text"
                                            style="color:#777777; font-family:\'Open Sans\', Helvetica, Arial, sans-serif; font-size:12px; font-weight:400; font-style:normal; letter-spacing:normal; line-height:20px; text-transform:none; text-align:center; padding:0; margin:0;">
                                            If you have any quetions please contact us <a href="#"
                                                style="color:#777777;text-decoration:underline;"
                                                target="_blank">support@criptohopper.live</a>
                                        </p>
                                    </td>
                                </tr>

                                <!-- Space -->
                                <tr>
                                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- Content Table Close// -->
                    </td>
                </tr>

                <!-- Space -->
                <tr>
                    <td height="30" style="font-size:1px;line-height:1px;">&nbsp;</td>
                </tr>
            </tbody>
        </table>
        <!-- Email Wrapper Footer Close // -->';
    $message .= 
        '               <!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
                    </td>
                </tr>
            </tbody>
        </table>';
    $message .= '</body></html>';

    mail($to, $subject, $message, $headers);
}