if ($action=="")
{
?>
}
else
{
require("PHPMailer_v5.1/class.phpmailer.php");
$mail = new phpmailer();
$mail->PluginDir = "PHPMailer_v5.1/";
$mail->Mailer = "smtp";
$mail->Host = "mail.velconet.net.ar";
$mail->SMTPAuth = true;
// $mail->SMTPDebug = 2; // enables SMTP debug information
$mail->Username = "envio@velconet.net.ar";
$mail->Password = "nomeimporta";
$mail->From = "envio@velconet.net.ar";
$mail->FromName = "EXPOAGRO SERVICIO INTERNET";
$mail->Timeout=60;
try
{
$mail->ClearAddresses();
$mail->AddAddress("comercial@velconet.net.ar", '');
$mail->AddAddress("comercial@anylink.com.ar", '');
// $mail->AddAddress("gerardo@anylink.com.ar", '');
$mail->Subject = "EXPOAGRO SERVICIO INTERNET";
$texto = "NOMBRE Y APELLIDO: ".$BOX_Nombre." "; $texto .= "EMAIL: ".$BOX_Email." "; $texto .= "TELEFONO: ".$BOX_Telefono." "; $texto .= "NUMERO DE LOTE: ".$BOX_Lote." "; $texto .= "EMPRESA: ".$BOX_Empresa." "; $texto .= "NUMERO DE USUARIOS: ".$BOX_Usuarios." "; $mail->MsgHTML($texto); if ($mail->Send()) { $envio = "OK"; $msg .= "Envío exitoso "; } else { $envio = "FAIL"; $msg .= "ERROR "; } } catch (phpmailerException $e) { $msg .= "".$e->errorMessage().""; //Pretty error messages from PHPMailer } catch (Exception $e) { $msg .= "".$e->getMessage().""; //Boring error messages from anything else! $msg .= "".$e->getLine().""; //Boring error messages from anything else! $msg .= "".$e->getCode().""; //Boring error messages from anything else! } ?>
|
|
© 1999 - Todos los derechos reservados | |