Hi All,
thank szczepan for your help.
A way to archieve that is to use a field "Afterstore" with some custom code like that.
// Adapt the query tou your need
$query = 'SELECT u.email FROM #__content AS c';
$query .= ' LEFT JOIN #__users AS u ON created_by = u.id';
$query .= ' WHERE c.state=1 AND u.block=0 AND c.catid=' . $fields['Your_category_field']->value;
$query .= ' GROUP BY c.created_by';
$users = JCckDatabase::loadColumn( $query );
if ( count( $users ) ) {
$from = $app->getCfg( 'from' );
$fromName = $app->getCfg( 'fromname' );
$dest = array( implode( ',', $users ) );
$cc = array( );
$bcc = array( );
$attach = null;
$subject = 'Your subject';
$body = 'Your body';
JFactory::getMailer()->sendMail( $from, $fromName, $dest, $subject, $body.$footer, true, $cc, $bcc, $attach, NULL, NULL );
}
You will have access to each field in the form by looking at the variable $fields.
Regards.
Lionel