les dejo el codigo aver si me pueden echar una mano aca
Código PHP:
<?
$sql = "SELECT * FROM mail";
$res = mysql_query($sql);
while ($ob = mysql_fetch_object($res)) { $losemails.=($ob->mail.", "); }
$largo=strlen($losemails);
if ($largo>2) { $losemails=substr($losemails,0,$largo-2); }
$head = "Content-type: text/html; charset=iso-8859-1\r\n";
$head .= "From: www.maquinariasanmarcos.com\r\n";
$head .= "MIME-Version: 1.0 Content-type: text/html";
$head .= "Bcc: $losemails";
$msg = "<html>
<body>
<table width='50%' border='0'>
<tr>
<td>Aqui la imagen</td>
</tr>
<tr>
<td>$titulo</td>
</tr>
<tr>
<td>$mensaje</td>
</tr>
<tr>
<td><img src='http://www.quintalosnogales.com/sanmarcos/admin/boletin/$imagen2_name'></td>
</tr>
<tr>
<td><p><center>YONKE Y MAQUINARIA SAN MARCOS Calle 46 <a class=\"numPost\" href=\"/foros/PHP/32163#4800\">#4800</a> Col. Rosario
Tel. (614)492-22-22, (614)492-23-23, (614)492-24-24
Celulares: (614)345-87-87 y (614)184-91-58
C.P. 31030 Chihuahua, Chih. México. <br><a href='www.maquinariasanmarcos.com'>Visite nuestra web</a></center></p>
<p> </p>
<p> <br><br>Desarrollado por <a href='www.colocacionweb.com'>colocacion web</a> Diseño y desarrollo web todo incluido</p></td>
</tr>
</table>
<p> </p>
</body>
</html>";
mail(NULL, $titulo, $msg, $head);
echo "Boletin mandado satisfactoriamente <br>
<br><a href='?s=acarchivos'>Volver</a>";
?>