Comentario usuario
4
5
mi pregunta es si el envio de los mail puede ser con CCO, para que los destinatarios no se pan los otros mails. gracias
Comentario usuario
3
5
y como se guardan en el txt
a@hotmail.com, b@hotmail.com, c@hotmail.com
o
a@hotmail.com
b@hotmail.com
c@hotmail.com
Comentario usuario
5
5
Hola serian separados por comas
Comentario usuario
2
5
como inserto este ejemplo que ustedes me dan en este otro que yo debo enviar :
<?php
/********************************
* abrimos el fichero HTML *
********************************/
// ruta relativa al fichero (CONFIGURABLE POR EL USUARIO)
$file_path = "./6.html";
// abrir fichero para lectura
$fp = fopen($file_path, "r");
// leer todo el contenido del fichero
$file_content = fread($fp,filesize($file_path));
// cerrar el fichero
fclose($fp);
/********************************
* servidor WEBSMTP *
********************************/
// inicializar servidor WEBSMTP (envio de correo a través de formularios WEB) (CONFIGURABLE POR EL USUARIO)
$mail_SMTPserver= "websmtp.teptribuna.com.ar";
/********************************
* asunto *
* mensaje *
* destinatario *
********************************/
// inicializar el asunto del correo (CONFIGURABLE POR EL USUARIO)
$mail_sbj = "Newsletter";
// inicializar el cuerpo del mensaje
$mail_msg = $file_content;
// inicializar el destinatario del correo (CONFIGURABLE POR EL USUARIO)
$mail_to = "newsletter@teptribuna.com.ar";
/********************************
* cabeceras *
********************************/
// inicializar cabeceras para envios de HTML en el correo
$mail_header = "MIME-Version: 1.0" . "
";
// inicializar cabeceras para envios de HTML en el correo
$mail_header .= "Content-type: text/html; charset=iso-8859-1" . "
";
// inicializar remitente del correo (CONFIGURABLE POR EL USUARIO)
$mail_header .= "From: info@teptribuna.com.ar" . "
";
$headers .= "Cc: soporte@upaweb.com.ar
"
// inicializar destinatario copia oculta (CONFIGURABLE POR EL USUARIO)
$mail_header .= "Bcc: diego@upaweb.com.ar,rlmilito@hotmail.com,becdiego@gmail.com,soporte@upaweb.com.ar" . "
";
/********************************
* inicializar servidor WEBSMTP *
********************************/
// establecer servidor SMTP para envio del correo
ini_set("SMTP",$mail_SMTPserver);
/********************************
* enviar correo *
********************************/
// funcion que realiza el envio de correo
mail($mail_to,$mail_sbj,$mail_msg,$mail_header);
echo "El mensaje se envió a su/s destinatario/s.";
?>
Comentario usuario
3
5
Hola muy buen Articulo!
Mi duda es se puede enviar HTML?¿Como lo hago?
a otra cosa como logro que sea Correo deseado