[sork] Vacation Module + from address from default identity
Jan Schneider
jan at horde.org
Sat Dec 13 03:26:43 PST 2003
Zitat von stephen.agar at usm.edu:
> This may be a ridiculous request, but I would like to modify the vacation
> package to use a from address that isnt just username at server. I've found
> that
> if you specify "From: blah at blah" in the Body of your vacation msg, then
> it will
> use that as the from address. I would like to modify
> the "/horde/vacation/templates/main/main.inc" file so above the :
>
> <?php echo "Subject: " . _("On vacation message") ?>
>
> line I would like to place something like this:
>
> <?php echo "From: " . Horde::getFormData('from_addr') ?>
>
> so it would use the from_addr that is stored in their default identity
> profile.
> I have seen this function used in imp under identities, and have found
> that
> value(from_addr) in the mysql database. I am NOT a PHP programmer, so
> could
> anyone tell me what i would have to include to make this work, or why
> this
> couldn't work, or security issues..or anything. Like I say, it may not
> even be
> possible.
Try something like:
require_once HORDE_BASE . '/lib/Identity.php';
$identity = &new Identity();
$from_addr = $identity->getValue('from_addr');
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the sork
mailing list