     <?php
     $email = 'lucas.souza@codecrm.com.br';
     $v_firstname = 'Lucas';
     $v_lastname = 'Souza';
     
     if(!empty($email))
     {
        $to = $email;
        $subject = "Confirmação de e-mail para $v_firstname $v_lastname";
        $message = "

         <!DOCTYPE html>
            <html style='padding: 0px; margin: 0px;' lang='pt_br'>
               <head> 
                   <meta charset='UTF-8' />
                    <style>
                       body{margin:
                            0;padding: 0;
                       }
                       @media only screen and (max-width:640px){
                           table, img[class='partial-image']{
                                width:100% !important;
                                height:auto !important;
                                min-width: 200px !important; 
                       }
                  </style>
               </head>
            <body>
            <table style='border-collapse: collapse; border-spacing:
               0; min-height: 418px;' cellpadding='0' cellspacing='0' width='100%' background='https://images.wallpaperscraft.com/image/wood_surface_texture_boards_118443_1920x1080.jpg');'>
               <tbody>
                  <tr>
                     <td align='center' style='border-collapse: collapse;
                        padding-top: 30px; padding-bottom: 30px;'>
                        <table cellpadding='5' cellspacing='5' width='650' height='400' bgcolor='white' style='border-collapse: collapse;
                           border-spacing: 0; border-radius: 15px;'>
                           <tbody>
                              <tr>
                                 <td style='border-collapse: collapse; padding: 0px;
                                    text-align: center; width: 600px;'>
                                    <table style='border-collapse: collapse;
                                       border-spacing: 0; box-sizing: border-box;
                                       min-height: 40px; position: relative; width:
                                       100%;'>
                                       <tbody>
                                          <tr>
                                             <td style='border-collapse:
                                                collapse; font-family: Arial; padding: 10px
                                                15px;'>
                                                <table width='100%' style='border-collapse: collapse; border-spacing:
                                                   0; font-family: Arial;'>
                                                   <tbody>
                                                      <tr>
                                                         <td style='border-collapse: collapse;'>
                                                            <hr style='border-color: rgb(255,255,255);
                                                               border-style:
                                                               dashed;'>
                                                         </td>
                                                      </tr>
                                                   </tbody>
                                                </table>
                                             </td>
                                          </tr>
                                       </tbody>
                                    </table>
                                    <table style='border-collapse: collapse; border-spacing:
                                       0; box-sizing: border-box; min-height: 40px;
                                       position: relative; width: 100%;'>
                                       <tbody>
                                          <tr>
                                             <td style='border-collapse: collapse; font-family:
                                                Arial; padding: 10px 15px; background:
                                                #fff;'>
                                                <table width='100%' style='border-collapse: collapse; border-spacing:
                                                   0; font-family: Arial;'>
                                                   <tbody>
                                                      <tr>
                                                         <td align='center' style='border-collapse:
                                                            collapse; line-height: 0px; padding: 0;
                                                            mso-line-height-rule: exactly;'><a href='http://saudeesabor.jp' target='_blank' style='display: block; text-decoration: none;
                                                            box-sizing: border-box; font-family: arial; width:
                                                            100%;'><img class='partial-image' width='245' style='box-sizing: border-box;
                                                            display: block; max-width: 600px; min-width:
                                                            160px;' dfsrc='https://saudeesabor.jp/image/cache/catalog/site/logo_saude_sabor2017-260x121.png' src='https://saudeesabor.jp/image/cache/catalog/site/logo_saude_sabor2017-260x121.png'></a></td>
                                                      </tr>
                                                   </tbody>
                                                </table>
                                             </td>
                                          </tr>
                                       </tbody>
                                    </table>
                                    
                                    <table style='border-collapse: collapse;
                                       border-spacing: 0; box-sizing: border-box;
                                       min-height: 40px; position: relative; width: 100%;
                                       font-family: Arial; font-size: 25px;
                                       padding-bottom: 20px; padding-top: 20px;
                                       text-align: center; vertical-align:
                                       middle;'>
                                       <tbody>
                                          <tr>
                                             <td style='border-collapse: collapse; font-family:
                                                Arial; padding: 10px 15px;'>
                                                <table width='100%' style='border-collapse: collapse; border-spacing:
                                                   0; font-family: Arial;'>
                                                   <tbody>
                                                      <tr>
                                                         <td style='border-collapse: collapse;'>
                                                            <h2 style='font-weight: normal; margin: 0px; padding:
                                                               0px; color: #666; word-wrap: break-word;'><a style='display: inline-block; text-decoration:
                                                               none; box-sizing: border-box; font-family: arial;
                                                               width: 100%; font-size: 25px; text-align: center;
                                                               word-wrap: break-word; color: rgb(102,102,102);' target='_blank'><span style='font-size: inherit;
                                                               text-align: center; width: 100%; color: #666;'>Confirma&ccedil;&atilde;o de e-mail</span></a>
                                                            </h2>
                                                         </td>
                                                      </tr>
                                                   </tbody>
                                                </table>
                                             </td>
                                          </tr>
                                       </tbody>
                                    </table>
                                    
                                    
                                    <table style='border-collapse: collapse;
                                       border-spacing: 0; box-sizing: border-box;
                                       min-height: 40px; position: relative; width:
                                       100%;'>
                                       <tbody>
                                          <tr>
                                             <td style='border-collapse:
                                                collapse; font-family: Arial; padding: 10px
                                                15px;'>
                                                <table width='100%' style='border-collapse: collapse; border-spacing:
                                                   0; text-align: left; font-family:
                                                   Arial;'>
                                                   <tbody>
                                                      <tr>
                                                         <td style='border-collapse:
                                                            collapse;'>
                                                            <div style='font-family: Arial;
                                                               font-size: 15px; font-weight: normal; line-height:
                                                               170%; text-align: left; color: #666; word-wrap:
                                                               break-word;'>
                                                               <div style='text-align:
                                                                  center;'><br></div>
                                                               <div style='text-align:
                                                                  center;'>Clique no link abaixo para prosseguir com a confirma&ccedil;&atilde;o do e-mail:<span style='line-height: 0; display:
                                                                     none;'></span><span style='line-height: 0;
                                                                     display:
                                                                     none;'></span>
                                                               </div>
                                                            </div>
                                                         </td>
                                                      </tr>
                                                   </tbody>
                                                </table>
                                             </td>
                                          </tr>
                                       </tbody>
                                    </table>
                                    <table style='border-collapse: collapse;
                                       border-spacing: 0; box-sizing: border-box;
                                       min-height: 40px; position: relative; width: 100%;
                                       padding-bottom: 10px; padding-top:
                                       10px;'>
                                       <tbody>
                                          <tr>
                                             <td style='border-collapse:
                                                collapse; font-family: Arial; padding: 10px 15px;
                                                padding-top: 20px; padding-bottom: 20px;'>
                                                <div style='font-family: Arial; text-align:
                                                   center;'>
                                                   <table style='border-collapse:
                                                      collapse; border-spacing: 0; background-color:
                                                      #63B8FF; border-radius: 10px; color:
                                                      rgb(255,255,255); display: inline-block;
                                                      font-family: Arial; font-size: 15px; font-weight:
                                                      bold; text-align: center;'>
                                                      <tbody style='display:
                                                         inline-block;'>
                                                         <tr style='display:
                                                            inline-block;'>
                                                            <td align='center' style='border-collapse: collapse; display:
                                                               inline-block; padding: 15px 20px;'><a href='http://parceria.codetecnologia.com.br/mobile/confirmar_email.php?id=$id_cliente_email' style='display: inline-block;
                                                               text-decoration: none; box-sizing: border-box;
                                                               font-family: arial; color: #fff; font-size: 15px;
                                                               font-weight: bold; margin: 0px; padding: 0px;
                                                               text-align: center; word-wrap: break-word; width:
                                                               100%;'>Confirmar e-mail</a>
                                                            </td>
                                                         </tr>
                                                      </tbody>
                                                   </table>
                                                </div>
                                             </td>
                                          </tr>
                                       </tbody>
                                    </table>
                                    <table style='border-collapse: collapse;
                                       border-spacing: 0; box-sizing: border-box;
                                       min-height: 40px; position: relative; width: 100%;
                                       display: table;'>
                                       <tbody>
                                          <tr>
                                             <td style='border-collapse:
                                                collapse;'>
                                                <div style='font-family: Arial;
                                                   font-size: 13px; font-weight: normal; line-height:
                                                   170%; text-align: left; color: #666; word-wrap:
                                                   break-word;'>
                                                   <div style='text-align:
                                                      center;'><br></div>
                                                   <div style='text-align:
                                                      center;'><span style='line-height: 0; display:
                                                         none;'></span><span style='line-height: 0;
                                                         display:
                                                         none;'></span>
                                                   </div>
                                                </div>
                                             </td>
                                          </tr>
                                       </tbody>
                                    </table>
                                  </td>
                              </tr>
                           </tbody>
                        </table>
                     </td>
                  </tr>
               </tbody>
            </table>
                    
                                 
            </body>
            </html>
        
        ";
        
        $headers  = 'MIME-Version: 1.0' . "\r\n";
        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
        $headers .= 'From: CODE Tecnologia <codecrm@codecrm.com.br>' . "\r\n";

        $sentmail = mail($to,$subject,$message,$headers);
     }
        
        ?>