he encontrado en este foro otro usuario con una duda similar, el muestra este codigo, el cual puedo usar pero no se como!
Código PHP:
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->From = "Daniel Pereyra";
$mail->FromName = "List manager";
$mail->Host = "smtp1.site.com;smtp2.site.com";
$mail->Mailer = "smtp";
@MYSQL_CONNECT("localhost","root","mi_password");
@mysql_select_db("my_company");
$query = "SELECT Nombre, email, FROM contactos WHERE id=$id";
$result = MYSQL_QUERY($query);
while ($row = mysql_fetch_array ($result))
{
// HTML body
$body = "Hello <font size=\"4\">" . $row["full_name"] . "</font>, <p>";
$body .= "<i>Your</i> personal photograph to this message.<p>";
$body .= "Sincerely, <br>";
$body .= "PHPMailer List manager";
// Plain text body (for mail clients that cannot read HTML)
$text_body = "Hello " . $row["Nombre"] . ", \n\n";
$text_body .= "Your personal photograph to this message.\n\n";
$text_body .= "Sincerely, \n";
$text_body .= "PHPMailer List manager";
$mail->Body = $body;
$mail->AltBody = $text_body;
$mail->AddAddress($row["email"], $row["Nombre"]);
if(!$mail->Send())
echo "There has been a mail error sending to " . $row["email"] . "<br>";
// Clear all addresses and attachments for next loop
$mail->ClearAddresses();
$mail->ClearAttachments();
}
muchisimas gracias y espeo me puedan ayudar!!!
muchas muchas gracias si lo hacen!
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)