on behalf of - Multimailer

Does anybody know the header for sending an 'on behalf of' email. You know when you see an email from someone and it has a behalf of statement in it, how are these sent, it would be good if it was built into the multimailer as a

$mailobject->setOnBehalfName('the name');
Resized Image

Follow, Like & Read:-


Re: on behalf of - Multimailer
  • 2009/2/27 10:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1

This is a functionality of the email server (eg MS Exchange).
In its setup you are granted access to read and to send also emails from an other address (mail box) that belongs to someone else (boss, department, ...). In your mail client, you can monitor the emails in this inbox and reply to them. The additional header is then added automatically by the mail server.

Re: on behalf of - Multimailer
  • 2009/3/14 3:31

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28

maybe you could use

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...

Sent on behalf of Earl Wilson by xoopsadmin@xoops.org

Set your language constant in:
_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.


Who's Online

58 user(s) are online (39 user(s) are browsing Support Forums)

Members: 0

Guests: 58



Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits