Welcome Guest, Not a member yet? Register   Sign In
Send mail with password to all students
#3

[eluser]MSMOHAN[/eluser]
Thanks for your fast reply.

but i need to send emails in the while loop.
Code:
$query = "SELECT * FROM `mail`";
$result = mysql_query($query);

  while ($row = mysql_fetch_array ($result))
  {
     $mail->Body    = "Your password is : dynamic values";
     $mail->AddAddress($row['email']);
     $mail->Send();
  }

it sends multiple mails to every users in the records..
but it doesn't have any duplicate records in the database..

or is there any simple way??

thanks


Messages In This Thread
Send mail with password to all students - by El Forum - 03-04-2011, 04:51 AM
Send mail with password to all students - by El Forum - 03-04-2011, 08:24 AM
Send mail with password to all students - by El Forum - 03-07-2011, 06:06 AM
Send mail with password to all students - by El Forum - 03-07-2011, 06:15 AM
Send mail with password to all students - by El Forum - 03-07-2011, 06:47 AM
Send mail with password to all students - by El Forum - 03-07-2011, 07:20 AM
Send mail with password to all students - by El Forum - 03-07-2011, 12:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB