<?php

/*require_once "Mail.php";

$from = 'MLMPro <admin@mlmpro.com>';
$to = '<abcd@gmail.com>';
$subject = 'Hi!';
$body = "Hi,\n\nHow are you?";

$headers = array(
    'From' => $from,
    'To' => $to,
    'Subject' => $subject
);

$smtp = Mail::factory('smtp', array(
        'host' => 'ssl://server217.',
        'port' => '465',
        'auth' => true,
        'username' => 'backend@mlmpro.com',
        'password' => '@@@@@@@'
    ));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
    echo('<p>' . $mail->getMessage() . '</p>');
} else {
    echo('<p>Message successfully sent!</p>');
}*/

include $_SERVER['DOCUMENT_ROOT'] . "/functions/mlmfunctions.php";
$username='admin';
$password=$password = substr(md5(uniqid(rand(),1)),3,6);
$to='mlmpro@gmail.com';
$msg="Hi " . $username ." \n\n you or someone else have requested your account details. \n\n Here is your account information please keep this as you may need this at a later stage. \n\nYour username is: ". $username . " \n\n Your password is : " . $password . "  \n\n Your password has been reset please login and change your password to something you can easily remember.\n\n MLMPro";

/*$htmlcontent='
    <html>
        <head><title>Welcome to MLMPro</title></head>
        <body>
            <h1 style="color:green; font-weight:normal;">Thanks for Joining Us!</h1>
            <table cellspacing="0" style="width:100%; padding:2%;">
                <tr><td>Name</td><td>John Doe</td></tr>
            </table>
        </body>
    </html>';*/
$subject="Welcome to MLMPro";

$msg="Dear " . $username . "\n\n Welcome to MLMpro. You have successfully registered as a member. Now, your journey towards building a great future and that of those around you have begun. You are requested to log into your account and update your account information with valid details including a working phone number, email, physical address, bank details, and nominee details. \n\n Below are a few important pointers that may help you:\n\n -Do not reveal your Password or your Transaction Password to anyone;\n -MLMpro will never ask you for the above either; -Give minimum of 24-48hours for your Withdrawal Requests to be processed (delays may be from the bank);\n -Always go through our website, blog, social media pages, and broadcasted messages to be in tune with updates;\n \n\nIf you will require help, please contact the Admin using the Contact Us form on the website or Open a Ticket on your dashboard (recommended), or send an email to admin@mlmpro.com. \n\nWishing you a MLMpro\n\n\nTeam MLMPro\nwww.mlmpro.org\n";

$mail=sendmail2($to,$msg,$subject);

/*if($mail){
    echo "successfully";
}else{
    echo "Error";
}*/



?>

<!DOCTYPE html>
<html>
    <head>
    	<title>Div 100% Height</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <style type="text/css">
        body, html{height: 100%;padding: 0; margin: 0;}
        #left, #middle, #right {height: 100%; width: 33%; float: left;display: inline-block;}

       #left {background: #009688}
       #middle {background: #35a79c}
       #right {background: #54b2a9}

    </style>

    <body>
        <!--<img src="/images/mlmdashboard.jpg">-->
    </body>
</html>