Jump to content

Recommended Posts

Hi Guys,

 

I have a application, once the button is trigger, the php mailer will send outlook meeting to participant and block their calendar.

 

Like This:

post-179514-0-41395900-1455696632_thumb.png

 

My question is, how can i attach excel spreadsheet in this calendar?

This is the expected result from user end:

 

post-179514-0-66317000-1455696903_thumb.png

 

As you can see there is a excel spreadsheet attached in the appointment email.

 

Above are my codes:

$text = "BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
METHOD:REQUEST
BEGIN:VTIMEZONE
TZID:Singapore Standard Time
BEGIN:STANDARD
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
UID:" . md5(uniqid(mt_rand(), true)) . "example.com
DTEND:". $date . "T" . $endTime . "00
DTSTAMP:" . gmdate('Ymd') . 'T' . gmdate('His') . "Z
DTSTART:". $date . "T" . $startTime . "00
SUMMARY:" . $subject . "
ORGANIZER;CN=" . $organizer . ":mailto:" . $organizer_email . "
LOCATION:" . $location . "
DESCRIPTION:" . $desc . "
TRANSP:TRANSPARENT
BEGIN:VALARM
TRIGGER:-PT30M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR";

I have tested this line of code:

ATTACH;ENCODING=BASE64;VALUE=BINARYXFILENAME=iq.xlsx:?????  //<-- Not sure what to code here.

But i cant get what i want.

 

Please Help.

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.