3
maybe you could use
$xoopsMailer->setFromEmail();
with whatever is calling the mailer
an example:
To change all outbound mail to the current username followed by the XOOPS admin configured 'From' value...
i.e.
Sent on behalf of Earl Wilson by
xoopsadmin@xoops.orgSet your language constant in:
\language\english\mail.php
_define("_MAIL_BEHALF", "Sent on behalf of %s% by ");
in \class\mail\xoopsmultimailer.php change line 159 to:
$xoopsMailer->setFromEmail(sprintf(_MAIL_BEHALF,$xoopsUser->getVar('uname') . $xoopsMailerConfig['from']));
Of course you could use a much more elegant/conditional implementation with replyto and more (assign variables within a module and set an if condition in xoopsmultimailer.php ) but I'm not even sure if I'm answering what you were asking so I won't go too deep. The xoopsUser var would need to be included as a global for this example to actually work.