Welcome Guest, Not a member yet? Register   Sign In
mailing lists bcc batch
#1

[eluser]pdriessen[/eluser]
Hello,

I know there are already a lot of discussions about bcc batch mode. But I still have several questions about it.

I'm using this code:
Code:
function sending_mails() {
        $this->load->library('email');    
    
        //CONFIG
        $config['protocol']         = 'smtp';
        $config['charset']             = 'iso-8859-1';
        $config['smtp_host']         = 'smtp.***.ext';
        $config['smtp_user']         = 'info@***.ext';
        $config['smtp_pass']         = '***';
        $config['smtp_port']        = '25';
        $config['wordwrap']            = false;
        $config['mailtype']            = 'html';
        $config['validate']            = true;
        $config['bcc_batch_mode']    = true;
        $this->email->initialize($config);
        
        //SETTING UP
        $list = [array];
        $this->email->to('[email_of_myself]');
        $this->email->bcc($list);
        $this->email->from('[reply_address]', '[my_name]');
        $this->email->subject('Email Test');
        $this->email->message('Testing the email class.');    
        
        //SENDING OUT
        $this->email->send();
        echo $CI->email->print_debugger();
    }

This code works fine for me. But my questions are the following:

To or BCC
With this code, I use a e-mail address of my own as $to. And the list is added as $bcc. Is it also possible to send the email to each member of list as $to?

Personal e-mails
Is it also possible to make the e-mails personal. For example to add the name of the receiver in the e-mail? And still using the bcc batch?

BCC batch, how does it work, can it be checked
How does bcc batch actually work? Does php (CI) sends a command to the server with the complete list of receivers and then the server just handles it? Is it possible to check which emails to which receivers are send, and save this in mysql?

Thank you very much! Regards,
Peter Driessen




Theme © iAndrew 2016 - Forum software by © MyBB