Foros del Web » Programando para Internet » PHP »

html en php - nesletter

Estas en el tema de html en php - nesletter en el foro de PHP en Foros del Web. Hola quiero mandar una plantilla de mail con php pero no me salen las imagenes que puede ser :( que hago mal es + extenso ...
  #1 (permalink)  
Antiguo 11/04/2011, 19:56
 
Fecha de Ingreso: junio-2010
Mensajes: 128
Antigüedad: 13 años, 10 meses
Puntos: 2
html en php - nesletter

Hola quiero mandar una plantilla de mail con php pero no me salen las imagenes que puede ser :( que hago mal

es + extenso pero lo resumo
Código:
<?php
$sfrom=$_POST['tumail']; //cuenta que envia
$sdestinatario= $_POST['mail']; //cuenta destino
$ssubject="SLogan "; //subject
$shtml="


<head>
<title>HumanaMail - Holiday Greetings Newsletter</title>

<style>

body {
	background:url('http://www.mktalternativa.com/images/humana_mainbg.jpg') top left repeat-x;
	background-color:#f9fcff;
	margin-left:auto;
	margin-right:auto;
}
h1, h2, h3 {margin:0px;}
h1 {font-size:16px; color:#0869aa; font-weight:bold; font-style:italic;}
h2 {font-size:16px; color:#0869aa; font-weight:lighter; font-style:normal;}
h3 {font-size:12px; color:#0869aa; font-weight:lighter; font-style:normal;}

a {color:#0869aa;text-decoration:underline;}
a:hover {text-decoration:none;}


</style>
</head>
<body bgcolor=#07253a leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>



 


<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr><td align=center>

	<table width=5200 border=0 cellpadding=0 cellspacing=0>
	<tr>
    

    
		<td width=520 height=30 valign=top align=center style=font-size:10px;color:#064d7c;font-family:Arial, Helvetica, sans-serif; >Having trouble viewing this email? <a href=#>Click here to view in your Browser</a><br>Not you? <a href=#>Click here to report.</a> | Click here to <a href=#>unsubscribe.</a></td>    
    </tr>
	<tr>
<!-- START -- Main Header -->
		<td width=520 height=263 valign=top><img src=http://www.mktalternativa.com/images/humana_header.png style=display:block;></td>
	</tr>
	<tr>
		<td width=520 height=54 valign=top>
            <table border=0 cellpadding=0 cellspacing=0>
        	<tr>
            	<td width=37 height=54><img src=http://www.mktalternativa.com/images/humana_barleft.jpg border=0 style=display:block;></td>
                <td width=444 height=54><img src=http://www.mktalternativa.com/images/humana_bar_message.jpg border=0 style=display:block;></td>
                <td width=39 height=54><img src=http://www.mktalternativa.com/images/humana_barright.jpg border=0 style=display:block;></td>
            </tr>
            </table>
        </td>
	</tr>
    <tr>
    <td width=520 bgcolor=#ffffff valign=top>
        <table cellpadding=0 cellspacing=0 border=0>
        <tr>
        	<td width=18><img src=http://www.mktalternativa.com/images/spacer.gif width=18 height=1></td>
            
            <!-- START -- Main Content Area -->
            
            <!-- In the below <td>, change the bgcolor=#yourcolor if you customized the colors. -->
            
            <td width=482 bgcolor=#d2dde4 valign=top>
                <table cellpadding=0 cellspacing=0 border=0>
            	<tr>
                	<td width=19><img src=http://www.mktalternativa.com/images/spacer.gif width=19 height=1></td>
                    <td width=444 valign=top>
                    	<table cellpadding=0 cellspacing=0 border=0>
                        <tr>
                        	<td bgcolor=#ffffff valign=top>
                            
                            	<table width=444 border=0 cellspacing=0 cellpadding=0>
                                  <tr>
                                    <td width=444 height=38><img src=http://www.mktalternativa.com/images/humana_welcomebox_top.jpg border=0 style=display:block;></td>
                                  </tr>
                                  <tr>
                                    <td width=444>
                                    
                                    	<table width=444 border=0 cellspacing=0 cellpadding=0>
                                          <tr>
                                          	<td width=18><img src=http://www.mktalternativa.com/images/spacer.gif width=18 height=1></td>
                                            
                                            <!-- Welcome message box -->
                                            
                                            <td width=408 style=font-family:Arial, Helvetica, sans-serif; color:#5c5c5c; font-size:12px;>
                                            	<h2>Hello {Customer Name},</h2>
                                                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer dictum molestie <a href=#>link example</a> fermentum. Ut ut felis nec massa semper pulvinar. 
                                                Aenean dictum molestie quam et aliquet. Aliquam feugiat est eget urna mattis id egestas orci adipiscing. Nullam sed purus orci, at luctus tortor. Integer porta 
                                                facilisis facilisis. Donec vehicula tincidunt eros a ullamcorper. Pellentesque leo neque, aliquet vitae blandit ac, sagittis ac ante.</p>
                                            </td>
                                            <td width=18><img src=http://www.mktalternativa.com/images/spacer.gif width=18 height=1></td>
                                          </tr>
                                        </table>
                                        
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width=444 height=15><img src=http://www.mktalternativa.com/images/humana_box-bottom.jpg border=0 style=display:block;></td>
                                  </tr>
                                </table>
                            
                                
                            </td>
                        </tr>
                        <tr>
                        
                        	
                                          
                                          <!-- Product Image/Info Area -->
                                          
                                            <td width=151 valign=top><img src=http://www.mktalternativa.com/images/humana_featurebox_image.jpg border=0 style=display:block;></td>
                                            <td width=375 style=font-family:Arial, Helvetica, sans-serif; color:#5c5c5c; font-size:12px;>
                                            
                                                <h3>PRODUCT NAME</h3>
                                                
                                                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer viverra nisl eu diam suscipit fermentum.</p>
                                                
                                                <a href=#><img src=http://www.mktalternativa.com/images/button_buy.jpg border=0 style=padding-right:18px;display:block;float:left;></a><a href=#><img src=images/button_viewdetails.jpg border=0 style=padding-right:18px;display:block;float:left;></a><a href=#><img src=images/button_inquire.jpg border=0 style=display:block;float:left;></a><br>
                                            
                                            </td>
                                            <td width=18><img src=http://www.mktalternativa.com/images/spacer.gif width=18 height=1></td>
                                          </tr>
                                        </table>
                                      
                                   </td>
                                </tr>
                                <tr>
                                   <td width=444 height=15><img src=http://www.mktalternativa.com/images/humana_box-bottom.jpg border=0 style=display:block;></td>
                                </tr>
                                </table>
                                
                          </td>
                        </tr>
                        <tr>
                        	<td width=444 valign=top>
                            
                            	<table cellpadding=0 cellspacing=0 border=0>
                                <tr>
                                
                         
        
        <!-- Footer Logo - Must Replace -->
        
   	    	<img src='http://www.mktalternativa.com/images/humana_footerlogo.jpg' border=0 style=display:block;float:left;>
            <table width=398 border=0 cellspacing=0 cellpadding=0>
              <tr>
              
              <!-- Footer Content - Arranged in columns to keep it neat. -->
              
                <td width=199 style=font-size:10px;padding-top:15px;font-family:Arial, Helvetica, sans-serif;color:#0869aa;><strong>Jane Doe</strong><br>Marketing Director<br><a href=#>[email protected]</a><br>1-800-123-1234</td>
                <td width=199 style=font-size:10px;padding-top:15px;font-family:Arial, Helvetica, sans-serif;color:#0869aa; align=right><a href=#>www.companyname.com</a><br><br><strong>Follow Us:</strong><br> <a href=#>Twitter</a> | <a href=#>Facebook</a> | <a href=#>Other</a></td>
              </tr>
            </table>
        </td>
    </tr>
    </table>
    
</td>
</tr>
</table>
    
</body>

"        ;

$sheader="From:".$sfrom."\nReply-To:".$sfrom."\n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n";
$sheader=$sheader."Mime-Version: 1.0\n";
$sheader=$sheader."Content-Type: text/html";
mail($sdestinatario,$ssubject,$shtml,$sheader);
?>
  #2 (permalink)  
Antiguo 11/04/2011, 20:08
Avatar de pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: html en php - nesletter

pues pasando por alto el hecho de que tu HTML es completamente horrendo, además de obsoleto e invalido... los clientes de correo suelen bloquear las imágenes externa a menos que se les configure de otro modo, cosa que no se puede resolver mediante código, sino mediante la configuración del cliente de correo... (:
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.

Etiquetas: html
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:33.