Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/09/2011, 12:30
toyeslomao
 
Fecha de Ingreso: diciembre-2010
Ubicación: tenerife
Mensajes: 60
Antigüedad: 14 años
Puntos: 0
erro al envial email local

hola chicos, pues eso que me da un error, por servidor local, uso xampp con e mercury ya configurado para gmail, aqui os pongo el error y el codigo

Código perl:
Ver original
  1. Insecure $ENV{PATH} while running with -T switch at  line 8, line 1.
  2.  
  3. !/usr/bin/perl
  4. require 5.001;
  5.  
  6. if( $mode eq "BOTH" || $mode eq "EMAIL") {
  7.    # Send email order to you...
  8.    open (MAIL,"|$mailprogram"); ( AQUI EL ERROR )
  9.    print MAIL "To: $youremail\n";
  10.    print MAIL "From: $b_email\n";
  11.    print MAIL "Subject: New Online Order\n";
  12.    print MAIL "\n\n";
  13.    print MAIL "A new order has been received.  A summary of this order appears below.\n";
  14.    print MAIL "\n";
  15.    print MAIL "Order Date: $months[$month] $day, $year $hour:$min:$sec \n";
  16.    print MAIL " \n";
  17.    print MAIL "Bill To: \n";
  18.    print MAIL "-------- \n";
  19.    print MAIL "   $b_first $b_last \n";
  20.    print MAIL "   $b_addr \n";
  21.    print MAIL "   $b_addr2 \n";
  22.    print MAIL "   $b_city, $b_state  $b_zip \n";
  23.    print MAIL "   $b_phone \n";
  24.    print MAIL "   $b_fax \n";
  25.    print MAIL "   $b_email \n";
  26.    print MAIL " \n";
  27.    print MAIL " \n";
  28.    print MAIL "Ship To: \n";
  29.    print MAIL "-------- \n";
  30.    print MAIL "   $s_first $s_last \n";
  31.    print MAIL "   $s_addr \n";
  32.    print MAIL "   $s_addr2 \n";
  33.    print MAIL "   $s_city, $s_state  $s_zip \n";
  34.    print MAIL "   $s_phone \n";
  35.    print MAIL " \n";
  36.    print MAIL " \n";
  37.    print MAIL "Qty  Price(\$)   Product ID  - Product Name\n";