
- Forum
- Programming Talk
- PHP
- Struck with the Task
Struck with the Task
This is a discussion on Struck with the Task within the PHP forums, part of the Programming Talk category; I have a requirement to send mails to all users defined in a table named as authors. I am struck ...
-
Struck with the Task
I have a requirement to send mails to all users defined in a table named as authors. I am struck with this process. Can someone give me guidelines for coding this process? Kindly help me out to finish this process.
-
You can write a query as below:
$uemail = mysql_query("select emails from authors");
and then write a function for sending emails as
message = generateEmailMessage()
-
12-10-2010, 02:04 PM #3
- Join Date
- Dec 2010
- Answers
- 34
You should also use an array to do the same action for every email in the table.
-
Just extract the author emails from the database table. Now cretae string $Cc and then put them in $Cc by using while loop to concate all the emails separated by "," operator store this newly generated string of emails. Now copy this $Cc to $header attribute of email($to, $subject, $message, $header) function. Now call the email function as shown above. You can concate the 25-30 emails in $Cc at a time. In this way you can send the email to 25-30 authors in one go.
I hope this will help you.
-
05-18-2012, 06:01 AM #5
- Join Date
- May 2012
- Answers
- 1
u can use mail function for it
-
Sponsored Ads

Reply With Quote





