Hi guys a have an TbGridView with the name of clients and his emails addresses, i want to send email to all selected clients in a TbGridView when i click to the button "Enviar". Can anyone help me please!!
<?php $this->widget(‘bootstrap.widgets.TbButton’, array(
‘buttonType’=>‘link’,
‘label’=>‘Enviar’,
'type'=>'primary',
'icon'=>'icon-envelope icon-white',
'url'=>'',
)); ?>
<?php $this->widget(‘bootstrap.widgets.TbGridView’,array(
'id'=>'entidades-grid',
'dataProvider'=>$model->search1(),
'filter'=>$model,
'selectableRows'=>2,
'columns'=>array(
array(
'id' => 'selectedIds',
'class' => 'CCheckBoxColumn'
),
array( 'name' => 'nome',
'type'=>'raw',
'value' => 'CHtml::link(UHtml::markSearch($data,"nome"),array("view","id"=>$data->id))',
'filter'=>false,
),
array(
'header'=>'Email',
'type' => 'raw',
'value' => 'CHtml::link(CHtml::encode($data->getEmails()), "mailto:".CHtml::encode($data->getEmails()))',
),
array('name'=>'sectores_id', 'value'=>'$data->sectores->desc','filter'=>false,),
array(
'name'=>'consultor',
'value'=>'User::itemAlias("AdminStatus",$data->consultor)',
'filter' => User::itemAlias("AdminStatus"),
),
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
),
),
)); ?>