Jump to content

ayok

Members
  • Posts

    340
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ayok's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. Hmm... Maybe I need to check about this. So. John = 1, 2 times Mary = 2, 2 times and Rob = 3, 2 times. I'll check this one too.. Thanks!
  2. I've set a time on the content. The duplicates are sent 6 minutes after the first. I've also set an order number, and all the duplicates has same number. <?php require("PHPMailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->SingleTo = true; $mail->CharSet = "UTF-8"; $mail->Subject = "Fiscanet Nieuws"; $r_receivers = array("John"=>"john@mail.com","Mary"=>"mary@mail.com","Rob"=>"rob@mail.com"); $i = 1; foreach($r_receivers as $name=>$email){ $mail->SetFrom('no-reply@yoursite.com', "Yoursite"); $mail->MsgHTML($sendContent); $mail->AddAddress($email, $name); $sendContent = "<p>This is test mail number ".$i." sent at ".date('H:i:s')."</p>"; if($mail->Send()) echo "Sent to: ".$email."<br/>"; else echo "Not sent to: ".$email.", reason: ".$mail->ErrorInfo."<br/>"; $mail->ClearAddresses(); $i++; } ?>
  3. Yes I'm sure. I have tested the script before posting it. And I got duplicates mail. It's confused me why ClearAddresses doesn't help. How can I hide the list of addresses while I use BCC?
  4. Hi. Thanks for your reply. However, I have put $mail->ClearAddresses() on my code, and it doesn't help. I've also tried to put it before the addAddress(). And it's also strange that I got the same amount of duplicates. My logic said, it should send 3 emails to the first and just 1 email for the last. But mostly I received 2 emails on all 3 email addresses.
  5. I've even tried to set the $mail->send() and the rest out of the loop (except $mail->addaddress), but it keeps sending you duplicates.
  6. Hi, I have this problem like some people with PHPMailer, and I cannot find any solutions on the internet. The problem is that PHPMailer sends duplicates (sometimes more than two) if I set it in a loop (while, foreach). I've checked the loop is just fine, but it keeps sending duplicates. Here is the code after I made it looks simpler. <?php require("PHPMailer/class.phpmailer.php"); $select = mysql_query("SELECT * FROM `pm_mailmembers` WHERE `mm_interval`='2' AND mm_blocked = 0") or die(mysql_error()); $mail = new PHPMailer(); $mail->SingleTo = true; $mail->CharSet = "UTF-8"; $mail->Subject = "Fiscanet Nieuws"; $sendContent = "<p>This is test mail</p>"; $r_receivers = array("John"=>"john@mail.com","Mary"=>"mary@mail.com","Rob"=>"rob@mail.com"); foreach($r_receivers as $name=>$email){ $mail->SetFrom('no-reply@yoursite.com', "Yoursite"); $mail->MsgHTML($sendContent); $mail->AddAddress($email, $name); if($mail->Send()) echo "Sent to: ".$email."<br/>"; else echo "Not sent to: ".$email.", reason: ".$mail->ErrorInfo."<br/>"; $mail->ClearAddresses(); } ?> I think I need to reset mail->addaddress inside the loop, but mail->clearaddresses doesn't help. And all 3 emails always receives the same emails. So all receives 2 or 3 mails. Could anyone help me out here?? Thanks. ayok
  7. Hi thanks.. it's a good trick.
  8. Hi, I have a question about array. For example I have this array: Array( [0] => Array ( [john@myemail.nl] => John ) [1] => Array ( [mary@myemail.nl] => Mary ) ) How can I make it like Array( [john@myemail.nl] => John [mary@myemail.nl] => Mary ) ? Thank you
  9. Hi. Got 2 more questions. How can I embed google translate? Not the one with select dropdown, but the textarea with translate button. How can I embed google voice? I mean the voice that can read html text. Thank you ayok
  10. Hi, I've got a question. How can I disable google translate from my website? Thanks, ayok
  11. Am I asking wrong question??
  12. Ok. I change the question. How can i redirect all links with htm in www to subdomain 'collections'?
  13. Oh... yes of course... thanks all!!
  14. ayok

    Slow site

    Hi. Thanks again. I'll try your suggestion.
  15. Hi.. thanks smosely. But I don't really understand your explanation. I need to install SSH in the server?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.