Hi there couchies,
I'm working on a calendar function for a client. When a new calendar item is added I would like to automatically send an e-mail with ical file attached to the invitees.
I have created an ical script for the event successfully:
And now i tried to add it to the e-mail with the help from this topic: viewtopic.php?f=8&t=6959
The file doesn't need to be uploaded though, it needs to be fetched from the server.
How could this be done?
I'm working on a calendar function for a client. When a new calendar item is added I would like to automatically send an e-mail with ical file attached to the invitees.
I have created an ical script for the event successfully:
- Code: Select all
<?php require_once('couch/cms.php'); ?>
<cms:content_type 'text/calendar' />
<cms:pages masterpage="ical-form.php">
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
UID:<cms:show organizer_mail/>
DTSTAMP:<cms:show datestamp/>
ORGANIZER;CN=<cms:show organizer_name/>:MAILTO:<cms:show organizer_mail/>
DTSTART:<cms:show datestamp/>T<cms:show start_date/>00Z
DTEND:<cms:show datestamp/>T<cms:show end_date/>00Z
LOCATION:<cms:show location/>
SUMMARY:<cms:show summary/>
END:VEVENT
END:VCALENDAR
</cms:pages>
<?php COUCH::invoke(); ?>
And now i tried to add it to the e-mail with the help from this topic: viewtopic.php?f=8&t=6959
The file doesn't need to be uploaded though, it needs to be fetched from the server.
How could this be done?