|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a form that gets sent email using php mail function. I would like to format part of the email message so that Outlook recognizes it as a calendar event. This would be really helpful. Does anyone know how to do this. It's gotto be possible. Though it is Microsoft. :-)
|
|
#2
|
|||
|
|||
|
Can't someone help
![]() |
|
#3
|
|||
|
|||
|
I dont think thats possible. Otherwise spam emails would mess up the diarys of the people ...
|
|
#4
|
|||
|
|||
|
possible
It has to be possible if someone the the format for a calander event in Outlook. I think that it is just a message with a particular formatting. Outlook hides the format though if you try to view it. :-( grumble microsoft.
![]() |
|
#5
|
|||
|
|||
|
still no help
![]() |
|
#6
|
|||
|
|||
|
I do not know, but i have found that you can add ebay-auctions to outlook calendar, so it should be possible. I would also need to knwo how..!
|
|
#7
|
|||
|
|||
|
did this ever get solved? Im looking to do the same thing. thanks.
|
|
#8
|
|||
|
|||
|
ICS attachment
I think this is what you are looking for:
bradym.net/php/creating-icalendar-ics-files-with-php |
|
#9
|
|||
|
|||
|
Outlook Calendar Email
Ok
After spending the whole day pasting code from several other sites, I accidentally found some code that will work. In the code, a user is registering for an event, and this script will set up a calendar event in the Outlook so they can accept/deny/etc Please note that the Description is currently not working (tomorrow's task) for some reason. <? $to = $formVars['email']; $subject = "Training Registration"; $message = "Thank you for participating in the Technical Certification training program.\n\n"; //================== $headers = 'Content-Type:text/calendar; Content-Disposition: inline; charset=utf-8;\r\n'; $headers .= "Content-Type: text/plain;charset=\"utf-8\"\r\n"; $messaje = "BEGIN:VCALENDAR\n"; $messaje .= "VERSION:2.0\n"; $messaje .= "PRODID:PHP\n"; $messaje .= "METHOD:REQUEST\n"; $messaje .= "BEGIN:VEVENT\n"; $messaje .= "DTSTART:" . $date_array[1] . $momth . $day1 . "T080000\n"; $messaje .= "DTEND:" . $date_array[1] . $momth . $day2. "T170000\n"; $messaje . "DESCRIPTION: You have registered for the class\n"; $messaje .= "SUMMARY:Technical Training\n"; $messaje .= "ORGANIZER; CN=\"Corporate\":mailto:training@corporate.com\n"; $messaje .= "Location:" . $location . "\n"; $messaje .= "UID:040000008200E00074C5B7101A82E00800000006FC30E6 C39DC004CA782E0C002E01A81\n"; $messaje .= "SEQUENCE:0\n"; $messaje .= "DTSTAMP:".date('Ymd').'T'.date('His')."\n"; $messaje .= "END:VEVENT\n"; $messaje .= "END:VCALENDAR\n"; $headers .= $messaje; mail($to, $subject, $message, $headers); ?> Finally works!!! |
|
#10
|
|||
|
|||
|
Quote:
You forgot the = on this line :P PHP Code:
|
|
#11
|
|||
|
|||
|
No able to do \n in describtion section
Hi,
thanks heaps for publishing this script. Thi shelped heaps. I just have a small issue. When I try to ammend the desscription below after \n it does not display it in the calendar. Works: $messaje .= "DESCRIPTION: You have registered for the class\n"; Doesn't work $messaje .= "DESCRIPTION: You have registered for the class\n" . "Please click below"\n; I can't get anything to display after the first \n. Did you come accross this. Any tips? This is driving me crazy. Cheers, amjmatrix |
|
#12
|
|||
|
|||
|
I've got this one working too but and Outlook smess to recognize it as a calendar item but,
I am not able to accept an item. THe only way I can get it into my Calendar is bij moving it to the folder (right-mouse). Is it possible to get an Accept-button like you have when you send it through e-mail to a person? |
|
#13
|
|||
|
|||
|
I have completed a working ical through php
Quote:
first create a folder in root directory and call it icsFile inside this filder create a blank text file called calendar.txt now create a php in the root directory called icalEmail.php and past the following code PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP Mail to Outlook Calendar |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|