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 _______________________________________________ Phpgroupware-users mailing list [email protected] http://lists.gnu.org/mailman/listinfo/phpgroupware-users
