Jump to content

Php confirmation email to two different email addresses?


vikas

Recommended Posts

I want to send confirmation email to 2 different email boxes.

this is the code sending to one box:

 

{

$this->load->library('email');

//$config['mailtype'] = 'html';

//$this->email->initialize($config);

 

$this->email->from('[email protected] 'Site team');

$this->email->to($em);

 

$this->email->subject('Welcome');

$msg = 'You have registered';

 

$this->email->message($msg);

 

$this->email->send();

}

thanks

and what should be the code sending same email to one more email box (example: mymail@gmail. com)

 

 

sorry,

but this doesn't work

if i use

$second_email = "[email protected]";

$this->email->to($em, $second_email);

 

email is sent to only $em

 

and if i use

$second_email = "[email protected]";

$this->email->to($second_email, $em);

email is sent to only $second_email

 

any more suggestions?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.