phpgroupware-developers
[Top][All Lists]
Advanced

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

RE: [Phpgroupware-developers] external emails


From: Don Graver (dgraver)
Subject: RE: [Phpgroupware-developers] external emails
Date: Thu, 10 Jul 2003 15:37:59 +0100

Thanks for the advice...but I didn't find anything having to do with
this in the files recommended.  So, I know this should be easy, but I'm
having problems just getting the HTTP_POST_VARS variable that I
specified in the template.  If I get the variable I should be set.  

Here is a list of what I have done:
Edited calendar/inc/class.uicalendar.inc.php by adding the following:
        $var[]= Array('field' => "Extra Invites", 'data' => '<textarea
name="extraInvites"></textarea>');

This worked fine and got the text area box onto the calendar add page.

Now, in calendar/inc/bocalendar.inc.php I am trying to get the POST
variable "extraInvites", but can't seem to do so.  I am working in the
function update ...where it calls $this->send_update(MSG_ADDED,
$event['participants']..etc.;
According to this the $event array has all the POST variables, but it is
not recognizing the one I added ("extraInvites").  I can't seem to find
where $event grabbed the POST variables or where it was initialized in
the first place.  

I also tried the following but to no avail:
Edited calendar/inc/class.uicalendar.inc.php where it says set
$this->bo->add_attribute('extraInvites',''); (approx. line 1144)

Also tried using "extraInvites[]" as the name of the textarea...but no
luck.

I'm not the most knowledgeable with object-oriented programming, so I am
getting somewhat lost following the code.  Thanks

-- Don


-----Original Message-----
From: Daryl L. L. Houston [mailto:address@hidden 
Sent: Wednesday, July 09, 2003 6:56 AM
To: address@hidden
Subject: Re: [Phpgroupware-developers] external emails


I'd think this would be pretty easy to implement.  Just add a database
field 
and a textbox to the template.  Then, in the portion of the calendar
code 
that does the emailing, you'd split the text field on commas or returns
and 
perform the email routine for each address.  The main pitfall that
springs to 
mind is that performance would take a hit as the emails were sent out
(the 
longer the list, the longer the load). I think you'd find the code to
screw 
with in calendar/class.uiprojects.inc.php, though other files to look at
if 
you don't turn anything up there are soprojects and boprojects. Look for
the 
string "REJECT" and go from there.

D


On Wednesday 09 July 2003 09:02 am, Don Graver wrote:
> I would like to develop a way so that a user can enter multiple email 
> addresses to a html 'text box' in the Calendar app when adding an 
> event.  This way the user is able to invite other people that are not 
> currently registered on the site.  I've done some research on how to 
> send an email, but not sure how to implement it and where.  What I 
> found was to use: $phpgw->send->msg.  Any recommendations on where to 
> begin would be greatly appreciated.
>
> Also, I would prefer not to allow the email app to users, but I can't 
> seem to figure out how to give a user an external email address unless

> I give them access to the email app.  For instance, if user-A adds an 
> event and user-B wants to be notified by email, it will currently 
> bounce b/c user-b doesn't have an account on the server.  The 
> registration app has an email field, but the db table phpgw_accounts 
> does not seem to have such a field.  I know the registration app is no

> longer being maintained, but is there a downside to adding a 
> email_address field to the phpgw_accounts table?
>
> If this has been discussed in previous threads I apologize, but I 
> could not find it.
>
> -- Don
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
>
>
> _______________________________________________
> Phpgroupware-developers mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/phpgroupware-developers

-- 
--------------------------------
Daryl L. L. Houston
Web Applications Developer
Signage Solutions, LLC
865.342.8270


_______________________________________________
Phpgroupware-developers mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/phpgroupware-developers




reply via email to

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