phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-users] Trouble Ticket System problem


From: Dave Hall
Subject: Re: [Phpgroupware-users] Trouble Ticket System problem
Date: Sat, 30 Jul 2005 01:24:37 +1000

On Fri, 2005-07-29 at 10:12 -0500, Alex Borges wrote:

So those rumours about you and the bus were false? ;)

Relevant stuff at bottom 

> Dave Hall wrote: 
> > On Thu, 2005-07-28 at 11:33 -0500, Chris Weiss wrote:
> >   
> > > why would it be up to tts?  it should be using the phpgwapi send mail
> > > class, if it's not then it needs fixed... except it unsupported for
> > > reasons just like this.
> > > 
> > >     
> > 
> > I would argue that the api needs a account->get_email_address method
> > which gets the user's email address.  First it should check for a linked
> > contact and see if there is an email address there, if so use it, if not
> > move on to the various email apps.
> >   
> The api does provide this, but its in class.contacts....
> 
> You may provide an account_id or a person_id  though. Also, for it to
> work  you actually have to set the email address in the addressbook
> for the corresponding person. What we do is actually have the admin
> set the email domain for the person from the accounts form and we fill
> the email address to the contacts backend from there... this way
> contacts->get_email($GLOBALS['phpgw']->account_id);

Then all we need to do is throw an execMethod into class accounts, so it
is logical :P

Cheers

Dave
-- 
Dave Hall (aka skwashd)
API Coordinator
phpGroupWare
-------------------------------------------------------------------------
Do you think if Bill Gates got laid in high school, do you think there'd 
be a Microsoft?  Of course not.
Underwear Goes Inside The Pants by Lazy Boy





reply via email to

[Prev in Thread] Current Thread [Next in Thread]