wouldn't the message keep looping, adding the last line with the
say the loop had to go over 30 times - it would add the same line 30 times, wouldn't it?
$this_message .= "unsubscribe $toemail";
what i mean by looping is..
$message = "my long newsletter story";
then the $message went into a function that sends mail to each person in the database. each person in the database has a seperate row.
so i have a mysql query that reads the database and just pulls out each person email during the loop.. it picks one email out, sends the newsletter, then loops again until each person gets their email.
but in each email, i want it to also list their $email to unsubscribe when clicking the link.. the thing is, its adds whatever is in the $message over and over and over again.
so basically the first email that sends is fine,
then the second email has just the $message, but it adds the rest of the email message (email footer) part.. and it just keeps adding during the loop. so how can i stop it from looping, but still get all the emails sent, without it adding more email footers in the loop.