l am trying to send individual emails with a loop using php mailer in joomla.

However when l generate the emails l get something like 12 emails to one email address even if the loop is only 2 in size

So its something like
foreach($res as $r)
{
//send email here
}

Post complete loop code.
There should be something wrong in loop only.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.