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); ?>