[dev] IMP Compose links for applications other than IMP

Jan Schneider jan at horde.org
Tue Feb 24 06:29:34 PST 2004


Zitat von Stuart Bingë <s.binge at codefusion.co.za>:

> Hi guys,
>
> I'd like to find out what the best way is for me to create a 'Compose Email'
> link (that pops up an IMP compose window) from other applications? I'm
> thinking in terms of displaying email addresses (attendees) when viewing a
> meeting - I think it would make sense to allow the user to quickly send off a
> mail to the attendee by just clicking on the mail link.
>
> All I have is the email address of the attendee. So far I've tried importing
> IMP.php and using Horde::link(IMP::composeLink(...), ...); - this is
> basically a copy & paste job from IMP's mailbox.php file, so currently it's
> not working (encountering 'file not found' errors). Is this even remotely the
> correct way to go about it?

No, not at all. ;-)

Try:
$registry->call('mail/compose', array(array('to' => addslashes($address)));

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list