PHP sends an outlook appointment Email. note: I haven't verified it yet. I saw it in a post? & Lt ;? Php ?? $? = "Other@xxxx.net ";?? $ From = "me@xxxx.net ";?? $ Subj = "mytestsubject"; PHP sends outlook appointment emails
Note: I haven't verified it yet. I saw it in a post.
?
? $? = "Other@xxxx.net ";?
? $ From = "me@xxxx.net ";?
? $ Subj = "my test subject ";?
? $ Msg? = "This is the email body ";?
?
? $ Header = "From:". $ from. "\ r \ n ".?
? ? ? ? ? "MIME-Version: 1.0 \ r \ n ".?
? ? ? ? ? ? "Content-Type: text/calendar; method = REQUEST ";?
?
? $ Txt_msg = "this is my text message, to be attached \ r \ n ".?
? ? ? ? ? ? ? "Not much to it, eh .";?
?
? // Various ways to creat a new, random UID?
? $ Cal_uid = "{". uniqid (mt_rand (), true )."}";?
? $ Cal_uid = "{". date ('ymmd'). 'T'. date ('his '). "-". rand (). "@ mydomain.com }";?
? $ Cal_uid = com_create_guid ();?
?
? $ Cal_msg =?
"BEGIN: VCALENDAR?
PRODID:-// Microsoft Corporation // Outlook 11.0 MIMEDIR // EN?
VERSION: 2.0?
METHOD: REQUEST?
BEGIN: VEVENT?
ORGANIZER: MAILTO: name?
DTSTART: 20090901t1720.z?
DTEND: 20090901T035959Z?
UID: ". $ cal_uid ."
LOCATION: my meeting location?
TRANSP: OPAQUE?
SEQUENCE: 0?
DTSTAMP: 20060309T045649Z?
CATEGORIES: Meeting?
DESCRIPTION: meeting description, line 1 of 2. \ nline 2 of 2. \ n?
SUMMARY: meeting subject?
PRIORITY: 5?
X-MICROSOFT-CDO-IMPORTANCE: 1?
CLASS: PUBLIC?
BEGIN: VALARM?
TRIGGER:-PT3D?
ACTION: DISPLAY?
DESCRIPTION: Reminder?
END: VALARM?
BEGIN: VTIMEZONE?
TZID: US/Central?
END: VTIMEZONE?
END: VEVENT?
END: VCALENDAR ";?
? If (mail ($ to, $ subj, $ cal_msg, $ header ,"")){?
? ? Echo "test email sent ";?
? } Else {?
? ? Echo "test email failed ";?
? }?
? ?>