Hi guys, I know how to program method in order to send mail to multiple recipients in Controller, but I don’t know where to get information about mail adresses. In my database,there is just one attribute, so I code like this in order to get one single adress of recipient:
Multiple recipients should be provided by this field seperated by semicolon. Unfortunately, i don’t know how to integrate field bb: in my application. Following code throws out error
right way do it is to add a virtual attribute in your model class
class EmailModel extend FormModel
{
// add this property to you model like so
public $bb;
// ...
}
// and create a field for bb
<?= $form->field($model, 'bb')->textInput()->label('bb:') ?>
don’t forget to mark bb as safe in your validation rules
as soon I changed informations about recipients to an array, I intend sending mail in Controller itering about $extract_inner
Hope,my intention will do its job as planned. What do U think? I know, it’s to me validating informations transformed to an array using string functions of php…