<?php



use PHPMailer\PHPMailer\PHPMailer;

use PHPMailer\PHPMailer\Exception;


require_once 'phpmailer/src/Exception.php';

require_once 'phpmailer/src/PHPMailer.php';

require_once 'phpmailer/src/SMTP.php';


$mail = new PHPMailer(true);
$mail->isSMTP();
$mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true;
$mail->Username = 'vision.million.inter@gmail.com';
$mail->Password ='iwdugwoojkbobdxb';
$mail->SMTPSecure = 'ssl';
$mail->Port = 465;

$mail->setFrom('vision.million.inter@gmail.com');
$mail->addAddress("chidiacmedevo2@gmail.com");
$mail->isHTML(true);

$mail->Subject = "Nouveau depot";

$mail->Body =  '
<div style="padding:0;margin:0;background-color:#f7f7f7;">
    <table style="table-layout:fixed; border-spacing:0; border-collapse:collapse; background-color:#f7f7f7; width:100%; margin:0 auto; padding:0;" width="100%" cellspacing="0" cellpadding="0" bgcolor="#f7f7f7;">
        <tbody>
            <tr>
                <td align="center" style="padding:25px 0;">
                  <table style="table-layout:fixed; border-spacing:0; border-collapse:collapse; background-color:#fff; border-radius:10px; min-width: 320px; max-width:600px; margin:0 auto; box-shadow:0px 0px 14px -4px rgba(0,0,0,0.2);" width="650" cellspacing="0" cellpadding="0" bgcolor="#f7f7f7;">
                      <tbody>
                          
                          <tr>
                              <td align="center" style="padding:16px 25px 25px;">
                                  <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                      <tbody>
                                          <tr>
                                              <td align="center" style="padding:0;">
                                                  <h1 style="color:#000; font-family: Arial, Helvetica, sans-serif; font-size:28px; font-weight:normal; letter-spacing:0.5px; line-height:1.5; text-align:center; margin:0 0 15px;"><strong></strong></h1>
                                                  
                                                  <p style="color:#000; font-family: Arial, Helvetica, sans-serif; font-size:25px; font-weight:normal; letter-spacing:0.5px; line-height:1.5; text-align:center; margin:0 0 15px;">Cher administrateur, un depot vient d\'etre effectue par perfect money avec l\'adresse:</p>

                                                  <p style="color:#000; font-family: Arial, Helvetica, sans-serif; font-size:25px; font-weight:normal; letter-spacing:0.5px; line-height:1.5; text-align:center; margin:0 0 15px;"> <strong>'.$adresse_envoie.'</strong></p>
                                              </td>
                                          </tr>
                                          
                                      </tbody>
                                  </table>
                              </td>
                          </tr>
                         
                          <tr>
                              <td align="center">
                                  <table width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color:#0169E4; padding:25px 25px; border-radius:0 0 10px 10px;">
                                      <tbody>
                                        
                                          <tr>
                                              <td align="center" style="padding:0 0;">
                                                  <p style="color:#fff; font-family:Arial, Helvetica, sans-serif; font-size:13px; font-weight:normal; letter-spacing:0.5px; line-height:1.5; text-align:center; margin:0 0;">Powered by <a href="#" style="color:#f4f4f4; padding:0; margin:0; text-decoration:underline; display:inline-block;padding:0 5px;">Vision million</a>.</p>
                                              </td>
                                          </tr>
                                      </tbody>
                                  </table>
                              </td>
                          </tr>
                      </tbody>
                  </table>
              </td>
          </tr>
      </tbody>
    </table>
    </div>


 ';

 $mail->send();

?>