[imp] login information in sent messages

Jose-Marcio Martins da Cruz Jose-Marcio.Martins at ensmp.fr
Fri Dec 14 11:18:37 UTC 2007


Jan Schneider wrote:
> Zitat von Jose Marcio Martins da Cruz <Jose-Marcio.Martins at ensmp.fr>:
> 
>> Hello,
>>
>> I'd like to be able to add a header to all IMP sent messages containing
>> the login of the one who sent the message. It seems to me that I can
>> easily use the exemple in the config/header.php file. But how can I get
>> the login name of the sender ? What's the variable name or function I
>> can use to do this ?
> 
> Auth::getAuth()

Thanks ! It works !

$xheader = sprintf(_("domain.com / Auth user : %s"),
   Auth::getAuth());
$_header['X-IMP-Sender'] = $xheader;


-- 
  ---------------------------------------------------------------
  Jose Marcio MARTINS DA CRUZ           http://j-chkmail.ensmp.fr
  Ecole des Mines de Paris
  60, bd Saint Michel
  75272 - PARIS CEDEX 06      mailto:Jose-Marcio.Martins at ensmp.fr


More information about the imp mailing list