The problem is the following: I have an Html::mailto()
in my Datacolumn
where I wanna give the value of the subject with it.
I can't use swiftmailer or some other extensions because I don't want to generate an email, instead, I want to open outlook, by clicking the hyperlink, and have the subject pre-written there.
This is the function:
public static function mailto($text, $email = null, $options = [])
This is my code:
[
'class'=>'\kartik\grid\DataColumn',
'attribute' => 'email',
'label' => 'E-Mail',
'format' => 'raw',
'value' => function($model){
$email = SucheBiete::find()
->select(['email'])
->join('INNER JOIN', 'user', 'user.user_id = suche_biete.user_user_id')
->scalar();
return Html::mailto('Kontaktaufnahme mit: ' . $email,$email, ['subject' => 'Hi There']);
}
]
It works but without getting the subject:
is the $option
parameter the right one to give a subject
,textbody
or cc
?