<?php
/*
  $Id: mail.php,v 1.10 2003/07/06 20:33:01 dgw_ Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/


function fecha(){ $mes = date("n"); $mesArray = array( 1 => "Enero", 2 => "Febrero", 3 => "Marzo", 4 => "Abril", 5 => "Mayo", 6 => "Junio", 7 => "Julio", 8 => "Agosto", 9 => "Septiembre", 10 => "Octubre", 11 => "Noviembre", 12 => "Diciembre" ); $semana = date("D"); $semanaArray = array( "Mon" => "Lunes", "Tue" => "Martes", "Wed" => "Miercoles", "Thu" => "Jueves", "Fri" => "Viernes", "Sat" => "Sábado", "Sun" => "Domingo", ); $mesReturn = $mesArray[$mes]; $semanaReturn = $semanaArray[$semana]; $dia = date("d"); $año = date ("Y"); return $semanaReturn." ".$dia." de ".$mesReturn." de ".$año; }


define('HEADING_TITLE', 'Enviar Email a Cliente(s)');

define('TEXT_CUSTOMER', 'Cliente:');
define('TEXT_SUBJECT', 'Asunto:');
define('TEXT_FROM', 'Desde:');
define('TEXT_MESSAGE', 'Mensaje:');
define('TEXT_SELECT_CUSTOMER', 'Seleccionar Cliente');
define('TEXT_ALL_CUSTOMERS', 'Todos los Clientes');
define('TEXT_NEWSLETTER_CUSTOMERS', 'Todos los Suscritos');

define('NOTICE_EMAIL_SENT_TO', 'Aviso: Email enviado a: %s');
define('ERROR_NO_CUSTOMER_SELECTED', 'Error: No ha seleccionado ningun cliente.');
define('TEXT_FROM_EMAIL', 'From e-mail:');

$fecha = fecha ();


define('TEXT_DEFAULT_EMAIL', '<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>Carniceria - Charcuteria LALO</title>

<STYLE type="text/css">

body {
   margin: 0;
   padding: 0;
   background-color: #ffffff;
}

td.permission {
   padding: 20px 0 20px 0;
}

td.permission p {
   font-family: \'Lucida Grande\', sans-serif;
   font-size: 10px;
   font-weight: normal;
   color: #151515;
}

td.permission p a {
   font-family: \'Lucida Grande\', sans-serif;
   font-size: 10px;
   font-weight: normal;
   color: #a72323;
}

td.header {
   background-image: url(\'header.jpg\');
   background-repeat: no-repeat;
   background-position: top center;
   background-color: #b62e2e;
   height: 130px;
}

td.header h1 {
   font-family: Georgia, serif;
   font-size: 30px;
   font-weight: normal;
   color: #333333;
   margin-left: 50px;
   margin-bottom: 24px;
}

table.content {
   background-color: #f5f5f5;
}

td.sidebar a {
   font-family: \'Lucida Grande\', sans-serif;
   font-size: 11px;
   font-weight: normal;
   color: #a72323;
   text-decoration: none;
}

td.sidebar ul {
   margin: 0 0 0 24px;
   padding: 0;
}

td.sidebar ul li,
td.sidebar ul li a {
   font-family: \'Lucida Grande\', sans-serif;
   font-size: 12px;
   font-weight: normal;
   color: #a72323;
}

td.sidebar h3 {
   font-family: \'Lucida Grande\', sans-serif;
   font-size: 16px;
   font-weight: bold;
   