Thx to answer quickly, but it's useless for me to put a name and adress of a recipient in the backend (email tab) as this data must be dynamic, according to the user who is sending the PM (should be something like "$usermail" and "$username" but don't know it -yet- in Joomla ??).
I found the ReplyTo line in includes.php, but of course I still need a variable as it should be the email adress of the sender (same as "$usermail").
And there's no need for confidentiality as users can ONLY send PM to Admin, and Admin back to users, but never users to users, so the admin reads every message sent to him...
So in my case, I need the From and ReplyTo correctly filled in the notification emails (to allow admin and users reply from the notification in their mailer), I understand the email configuration is set in includes.php, beginning at line 86 :
$header = "From: \"".$fromname."\" <".$frommail.">\n";
$header .= "Organization: ".$mosConfig_sitename."\n";
$header .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Content-type: text/plain; charset=".uddeIMgetCharsetMailalias($config->mailcharset)."\n";
$header .= "Content-Transfer-Encoding: 8bit\n";
$header .= $addheaders;
if ($config->mailsystem==1) { // mosMail
$ret = uddeIMmosMail($frommail, $fromname, $tomail, $subject, $message, false, NULL, NULL, NULL, $replyto, NULL);
} else { //php mail
$header .= "Reply-To: ".$replyto."\n";
$ret = @mail($tomail,$subject,$message,$header);
I think I need to replace "
$fromname" and "
$frommail" by the variable of the user logged in, I tried to find out HOW, but without any success for the moment ...
I know you didn't create uddeIM exactly for this purpose, but I would really appreciate some help to integrate this small modification
Thx