• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email class

#1
[eluser]The Mask[/eluser]
Hi,

I have an array of recipients to send an email to but would like a separate email sending to each recipient so the people can't see the other peoples email addresses. I currently have a loop, similar to this...

foreach ( $emails as $email )
{
$this->email->to( $email->email_address );
$this->email->send();
}

1) The email body seems to get a bit screwed up with characters missing for some reason.
2) Is there a better way to do this? bcc_batch perhaps but not much documentation on this.

Any help appreciated.
Cheers

#2
[eluser]designfellow[/eluser]
Hi,

Use $this->email->clear() line after send() function. It will clear the existing things.

You can also add multiple emails by separating with comma in cc() and bcc()
example: $this->email->cc('[email protected]','[email protected]');




Happy Coding,
DesignFellow


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.