Page 1 of 1

sending message to all the emails listed in the table

Posted: Fri Feb 18, 2005 10:48 am
by kanchan
i dunno how to send the email to all the users have their respective emails in table...

can u tell me how???


suppose i have

name email
------- --------
ram ram@hotmail.com
sita sita@hotmail.com
hari hari@hotmail.com
gita gita@hotmail.com


i wanna send message to this users all at once.....

can anybody help me....

Posted: Fri Feb 18, 2005 11:46 am
by anjanesh
What kind of table ? Database table ot HTML Table ?
If its db table then just query it and from the results,

Code: Select all

$row=mysql_fetch_assoc($res)
mail($rowї'email'],$subject,$message,$headers)
http://in2.php.net/manual/en/function.mail.php

Posted: Fri Feb 18, 2005 11:52 pm
by n00b Saibot
you would have to add together all the email addresses into one string separated by ',' (comma) to send email to all at once