Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
how to load email->bcc from database?
frocco
June 2015
Hi,
I need to load the bcc with emails from my users table.
will the as_array() work?
Thanks
Harro
June 2015
Accepted Answer
Depends on what your as_array returns.
You can pass an assoc array to bcc(), containing 'email' => 'name' entries.
frocco
June 2015
[code]
$query = Model_User::query()->where('email','<>','')->get();
$users = \Arr::pluck($query, 'username', 'email');
$email->bcc($users);
[/code]
I am not getting the bcc copy.
frocco
June 2015
It's working now.
Harro
June 2015
For future readers, what was the problem?
frocco
June 2015
No problem, bcc was going to my spam folder.
:-)
Harro
June 2015
ah, ok. Thanks for clearing that up.
:-)
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
frocco
June 2015
Harro
June 2015