So when using codeigniters email class i realise that sending to a single email is;
$this->email->to('email1@email.com');
and to multiple emails is an array like below;
this->email->to('one@example.com, two@example.com, three@example.com');
But how do i send an email to a list of contacts stored in a database, say.. 'contacts' table 'email' field.. is this possible? and if so how do i set it u-? do i use a model etc etc? im new to codeingiter so apoligies if this is simple
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…