[imp] Locking the ability to change the From header in outbound mail.

Andrew Morgan morgan at orst.edu
Fri Sep 19 15:56:32 UTC 2008


On Fri, 19 Sep 2008, Robin Polak wrote:

> If am having trouble locating a setting to successfully lock the ability to
> change the From field in outgoing mail.  I would really appreciate any
> guidance those viewing this list may offer.

In horde/config/prefs.php:

// user preferred email address for From: line
// If you lock this preference, you must specify a value or a hook for it in
// horde/config/hooks.php.
$_prefs['from_addr'] = array(
     'value' => '',
     'locked' => true,
     'hook' => true,
     'shared' => true,
     'type' => 'text',
     'desc' =>  _("Your From: address:")
);


Then use a "_prefs_hook_from_addr" in horde/config/hooks.php to set the 
>From address.  Users will still be able to set their Fullname, but not the 
email address.

 	Andy


More information about the imp mailing list