Send Emails to selected people
Posted: Mon Mar 29, 2010 12:33 am
i want to send a email to selected people in my database.And i know how to use mail() function.
from while loop i can retrieve all mail addresses. but how to select addresses separably.
here is the result and how to send mails only to aaaa and cccc.
aaaa@mail.com
bbbb@mail.com
cccc@mail.com
dddd@mail.com
Thanks,
..::chethaka::..
from while loop i can retrieve all mail addresses. but how to select addresses separably.
Code: Select all
while($new=mysql_fetch_array($result2)){
$email=$new['email'];
echo $email."<br>";
}
aaaa@mail.com
bbbb@mail.com
cccc@mail.com
dddd@mail.com
Thanks,
..::chethaka::..