
ayok
Members-
Posts
340 -
Joined
-
Last visited
Never
Everything posted by ayok
-
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!
-
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"=>"[email protected]","Mary"=>"[email protected]","Rob"=>"[email protected]"); $i = 1; foreach($r_receivers as $name=>$email){ $mail->SetFrom('[email protected]', "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++; } ?>
-
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?
-
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.
-
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.
-
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"=>"[email protected]","Mary"=>"[email protected]","Rob"=>"[email protected]"); foreach($r_receivers as $name=>$email){ $mail->SetFrom('[email protected]', "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
-
Hi thanks.. it's a good trick.
-
Hi, I have a question about array. For example I have this array: Array( [0] => Array ( [[email protected]] => John ) [1] => Array ( [[email protected]] => Mary ) ) How can I make it like Array( [[email protected]] => John [[email protected]] => Mary ) ? Thank you
-
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
-
Hi, I've got a question. How can I disable google translate from my website? Thanks, ayok
-
Am I asking wrong question??
-
Ok. I change the question. How can i redirect all links with htm in www to subdomain 'collections'?
-
Oh... yes of course... thanks all!!
-
Hi. Thanks again. I'll try your suggestion.
-
Hi.. thanks smosely. But I don't really understand your explanation. I need to install SSH in the server?
-
Hi, I have a site which is going much slower to download when there are more items. I think it's caused by the queries in the site, but I really don't know which query. Is it the mysql_num_rows? Or searching queries? There is a long "where" filter. Has anyone experienced this? Any suggestions? Thanks, ayok
-
Hi, I have a question about uploading large files to webserver. It takes always long time to upload files like joomla! or magento site through FTP like filezilla which can have more than 10000 files. Is there any faster way to do this? Thanks, ayok
-
Thanks awjudd.. not exactly what I'm expected, but you've given me an idea to solve.
-
The site that is blocked is exactly the same site with the other one which is not blocked by w3c, only in different domain (production and development server).
-
Hi thanks.. Sorry, I don't really understand what do you mean by user agent issue. Is it browser issue?
-
this is the same site in other server http://validator.w3.org/check?uri=http%3A%2F%2Fwater4dump.yoursite.nl&charset=%28detect+automatically%29&doctype=Inline&group=0 This is the real site http://validator.w3.org/check?uri=http%3A%2F%2Fwww.watersport4all.nl&charset=%28detect+automatically%29&doctype=Inline&group=0 which is blocked by w3c site
-
Is it possible that the server settings cause this?? because I have now two the same websites in different domains. One you can validate, and the other not...
-
Hi, I'm trying to use if in mysql query, but can't get it work. So the case is i want to select rows when siteid is not zero, if it's zero then I need to cancel the where. I've tried SELECT * FROM items WHERE IF(siteid > 0,$siteid,0) = $siteid With this query I got good result when $siteid is not 0, but it returns empty when $siteid = 0, which actually select siteid = 0. What I need is no more where, so it should just returns all. Could anybody help me here? Thanks ayok
-
Hi, I have a question. I want to redirect old urls to a new url using htaccess, but there are too many old urls. However, it has a pattern. The links are always like 23_34_pagecategory_pagename.htm. How do I do 301 redirect on .htaccess? Thank you, ayok
-
Hi, I got a problem with w3c html checker (The client checked it). It gives me this error for this specific site http://www.watersport4all.nl like: I don't really understand because if I take a look on the source codes it shows me charset=utf-8. The site is made with joomla! cms. Could someone please help me out to find the problem here? Thank you! Ayok