I'm using Jack's PHP FormMail script, and I need to change it. I know
very little abou PHP, but here's what I very much need to do right away.
I need the script to send the same hard coded message to each of 10
people. All of the email addresses do not need to be in the To field.
Only the
mcp6453 wrote:
I'm using Jack's PHP FormMail script, and I need to change it. I know
very little abou PHP, but here's what I very much need to do right away.
I need the script to send the same hard coded message to each of 10
people. All of the email addresses do not need to be in the To field.
John W. Holmes wrote:
mcp6453 wrote:
I'm using Jack's PHP FormMail script, and I need to change it. I know
very little abou PHP, but here's what I very much need to do right away.
I need the script to send the same hard coded message to each of 10
people. All of the email addresses
for($z=0;$zcount($recipient);$z++)
{ mail($recipient[$z],$subject,$message,$headers); }
What is the difference between this code and using a foreach command?
Nothing, really. Using a foreach() simply means you don't have to keep
up with the $z count variable...
foreach($recipient as $email)
{
4 matches
Mail list logo