phpgroupware-developers
[Top][All Lists]
Advanced

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

Re: [Phpgroupware-developers] plans for a notification mechanism in the


From: Dave Hall
Subject: Re: [Phpgroupware-developers] plans for a notification mechanism in the API?
Date: Fri, 22 Nov 2002 13:48:28 +1100

address@hidden wrote:

> Hello,
> 
> I want to add to a custom app we have developped a simple 
> mechanism of
> sending an email to one adress (a mailing list) when a new information
> item is added. I have looked in the list archives and on the IRC logs
> and found that the issue of notification per email comes up regularly
> and that there is some support for it in the calendar app. And I
> remember one post I cannot find again, where somebody told about
> setting up something like a generic notification mechanism. 

Stephen Cremer aka scr was working on this iirc.  He was wroking on
sending iCal attachments.  I don't know the status of the project. 
Maybe he will respond here.

Another place to get some info on the mail stuff may be the anglemail
list "anglemail at free-source dot com".  I have emailed this message
there.  If you need/want to hack it yourself this would be the place to
ask questions about email.  afaik there are no public archives of this
list so you either need to subscribe or ask that people cc you.


> 
> Is there any plan for developping such a mechanism in the API, that
> would provide an app with simple functions to send any kind of email
> to any kind of adress? If not, is there any interest of users to see
> something like that happen? Do you have any special ideas of the
> requirements for such a mechanism, should it be hook_based?
> 
> What would be most useful for me at the moment, were just an API
> object, which could be initialized with an array of adresses, or
> alternatively a list of user-IDs and either construct adresses based
> on address@hidden or fetch them from LDAP, and some sort of
> specification for content (ideally permitting multiple part MIME
> emails) and that take care of sending the mails out.
> 
> My excuses if I missed something that is already obvious in the docs.

Attachments are not supported by the api email function at the moment. 
I am not sure if the api supports obtaining the user's email address. 
There are some issues with this, there are 2 email apps, anglemail
supports multiple accounts, this is also planned for felamimail.


The dev doc is a bit old, but this is what i found:

5.5  Email/NNTP Functions

$phpgw->send->msg

$phpgw->msg->send($service, $to, $subject, $body, $msgtype, $cc, $bcc)
Send a message via email or NNTP and returns any error codes.
Example:

$to = "address@hidden";
$subject = "Hello buddy";
$body = "Give me a call\n Been wondering what your up to.";
$errors = $phpgw->msg->send("email", $to, $subject, $body);

Note: replace $phpgw with $GLOBALS['phpgw']


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

Attachment: dave.hall.vcf
Description: Card for <dave.hall@mbox.com.au>


reply via email to

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