06/10/2006, 14:57
|
| | Fecha de Ingreso: mayo-2006
Mensajes: 288
Antigüedad: 18 años Puntos: 4 | |
Mi codigo usado es el siguiente: Código PHP: <? $remite_nombre = $_POST['rem_nombre'] ; $remite_mail = $_POST['rem_email'] ; $nombre_para_mail = $_POST['desti_nombre'] ; $para_mail = $_POST['desti_email'] ; $autor = $_POST['int'] ; $track = $_POST['track'] ; $url = $_POST['url'] ; $album = $_POST['alb'] ; $id = $_POST['id'] ; $mensaje = $_POST['mensaje'] ; $respuesta = "$url?nat_name=2&id=3&type=nat&nat=mailer&cbr=2" ; $encabezado1 = "From: Intermusica - Musica gratis <[email protected]>"; $encabezado1 .= "\nReply-To:"; $encabezado1 .= "\nX-Mailer: PHP/" . phpversion(); $encabezado1 .= "Content-type: text/html; charset=iso-8859-2"; $cab1 = $encabezado1 ; $para1 = $para_mail ; $asunto1 = "$remite_nombre te invita a escuchar musica gratis" ; $mensage1 = " <html> <head> <title>Hey $nombre_para_mail, $remite_nombre te invita a escuchar musica gratis</title> </head> <style> body { padding: 0; margin: 0; font: 0.7em Tahoma, sans-serif; line-height: 1.5em; background: #fff; color: #666666; } p { margin: 0 0 5px 0; } d { margin: 0 0 5px 0; } a { color: #E0691A; background: inherit;} a:hover { color: #6C757A; background: inherit; } .dark { color: #737373; background: inherit; font-weight: bold; } .header { height: 55px; background: #eee; color: #808080; margin: 3px 0 ; padding: 15px 0 0 15px; border-bottom: 1px solid #ccc; } .logo { font: 2em Tahoma, sans-serif; } .top_info { float: center; width: 555px; padding: 5px 0 4px 0; border-bottom: 1px solid #eee; background: #eee; color: #808080; } .top_info_left { width: 200px; float: left; } .top_info_right { float: right; width: 290px; background: #fff; padding: 0 0 0 15px; border-left: 1px solid #eee; } .footer { clear: both; text-align: center; padding: 10px 0 10px 0; margin: 0; border-top: 1px solid #ccc; line-height: 1.8em; } .footer a { color: #808080; background: #fff; } </style> <body> <div align=center> <div class=header style=width: 490px; height: 41px> <div class=logo> <p align=left> <a href=$url title=Intermusica - Música gratis siempre> <span class=dark> <span style=text-decoration: none; font-weight:400>Inter</span></span><span style=text-decoration: none; font-weight:400>Música</span></a> </div> </div> <div class=top_info style=width: 490px; height: 57px> <div class=top_info_left style=width: 189px; height: 185px> <img border=0 src='$url/logo/logo_max_gif.gif' width=186 height=186></div> <div class=top_info_right style=width: 292px; height: 128px> <p align=left><font color=#000000><b>$remite_nombre</b> con email: $remite_mail</font>, te ha enviado un mail con contenido multimedia.<p align=left> <b>Autor:</b>$autor - <b>Cancion:</b>$track - <b>Album:</b>$album<p align=left> Para poder escucharlo has Clic <a href=$url/index.php?nat_name=2&id=3&type=nat&nat=received&i=$id >Aquí</a>.<p align=left> Ademas te ha enviado un pequeño mensaje:<table border=0 width=100% cellspacing=1 id=table1> <tr> <td align=center style=border-left-width: 1px; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px> <font size=2>$mensaje</font></td> </tr> </table> <p align=left>Si tu tambien quieres enviar un mensaje con musica a alguien especial entrale a </p> <p align=left><b>Nota:</b></p> <p align=left><b>Para poder escuchar este track o canción debes de disponer de WINDOWS MEDIA PLAYER.</b></div> </div> </div> <div class=content> <div class=footer> Intermusica 2006 © Copyright, Creado Por: - <a title=Junin.Net href=#>Junin.Net</a> </div> </div> </body> </html> " ; $to1 = mail($para1, $asunto1, $mensage1, $cab1); $tipos="$to1"; $lista=explode(";",$tipos); foreach ($lista as $proces)//mas de uno separado por ; recogidos de la variable $correos if(!$proces) { echo "<h1>No se pudo enviar el Mensaje</h1>"; exit(); } else { /* aqui redireccionamos a la pagina de respuesta */ echo "<meta HTTP-EQUIV='refresh' content='1;url=$respuesta'>"; } ?> |