stephanb wrote:Hope my english is good enough - and my answer matches with you question..

components\com_ckforms\models\ckforms.php
two new lines bevor "$mail->setSender( array(.." :
$ck_user =& JFactory::getUser();
$ck_mail = $ck_user->email;
change line "$mail->setSender( array(.." :
$mail->setSender( array( $ck_mail /*$ckform->emailfrom*/, "" ) );
I have used it in a form for registered Users.
So the Recepient gets the E-Mail-Adress of the Sender in the E-Mail-Line "From:"
Off topic:
I have no idea, how to hack - that just the
filled fields will be showed in the E-Mail.
e.g. there are 50 items to order -> in the submitt-e-mail are just the items listed, where I made the cross/text/..
Hi stephan, Glad to have found your little hack, but in ckforms.php there are 2
$mail->setSender( array strings and I don't think I actually got your Tip:
DO I need to add these 2 lines Under the first String from you mentioned so that
$mail->setSender( array( $ckform->emailfrom, "" ) );
$mail->setSubject( $ckform->subject );
$mail->setBody( $mailBody );
BECOME
$mail->setSender( array( $ckform->emailfrom, "" ) );
$mail->setSubject( $ckform->subject );
$mail->setBody( $mailBody );
$ck_user =& JFactory::getUser();
$ck_mail = $ck_user->email;
AND
$mail->setSender( array( $ckform->emailfrom, "" ) );
$mail->setSubject( $ckform->emailreceiptsubject );
$mail->setBody( $mailBody );
BECOME
$mail->setSender( array( $ck_mail /*$ckform->emailfrom*/, "" ) );


Relly need this change badly ; ) Thanks