1
wishcraft
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');
$mailobject->setOnBehalfEmail('person@example.com');
Resized Image
http://www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

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

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

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


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

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


Login

Who's Online

141 user(s) are online (93 user(s) are browsing Support Forums)


Members: 0


Guests: 141


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits