Welcome Guest, Not a member yet? Register   Sign In
Multiple emails send to only one specific email adress
#1

[eluser]Thyvo[/eluser]
Hello,

I'm having a problem with sending mails, every time I want to send a email it only gets recieved by one email adress (note that for some reason its only gets recieved to this emailadress, if I leave it out of the mailing list, no-one gets a email in the paste below its [email protected])
I used the $this->email->print_debug function and I get this
Code:
Your message has been successfully sent using the following protocol: sendmail
User-Agent: CodeIgniter
Date: Sun, 17 Jun 2012 13:58:53 +0200
Bcc: [email protected], [email protected], [email protected], [email protected], [email protected]
From: "[email protected]"
Return-Path:
Subject: =?iso-8859-1?Q?Urgent_email!?=
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0


Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

New urgent report
Subject: fesfesf
Visit http://subdomain.domain.be/
uitgevoerd

now for my code I have

Code:
&lt;?php
class Emails extends CI_Model {

    function __construct()
    {
        parent::__construct();
    }
    function urgent($date, $subject){
     $this->load->library('email');
  $inc = $this->db->query("SELECT * FROM `users` WHERE `mailing` = 1 ORDER BY  `users`.`name` ASC ");
  $emails = $inc->result();
  $adres = array();
  foreach($emails as $emailys){
   $adres[] = $emailys->email;
  }
  print_r($adres);
   $message = "New urgent report \n Subject: $subject \n Visit http://subdomain.domain.be/";  
   $this->email->bcc_batch_mode = true;
   $this->email->bcc_batch_size = 50;
   $this->email->bcc($adres);

   $this->email->from('[email protected]','Reporter');
   $this->email->subject('Urgent email!');
   $this->email->message($message);
   set_time_limit(0);
   ignore_user_abort(true);
   $this->email->send();
   echo $this->email->print_debugger();
}
}
?&gt;



Messages In This Thread
Multiple emails send to only one specific email adress - by El Forum - 06-17-2012, 05:33 AM
Multiple emails send to only one specific email adress - by El Forum - 06-17-2012, 06:37 AM
Multiple emails send to only one specific email adress - by El Forum - 06-17-2012, 06:42 AM
Multiple emails send to only one specific email adress - by El Forum - 06-17-2012, 09:19 AM
Multiple emails send to only one specific email adress - by El Forum - 06-17-2012, 10:34 AM
Multiple emails send to only one specific email adress - by El Forum - 06-17-2012, 03:09 PM
Multiple emails send to only one specific email adress - by El Forum - 06-17-2012, 03:44 PM
Multiple emails send to only one specific email adress - by El Forum - 06-17-2012, 05:22 PM
Multiple emails send to only one specific email adress - by El Forum - 06-17-2012, 06:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB