Solved

cfmail and outlook appointment

Posted on 2006-07-03
5
1,103 Views
Last Modified: 2013-12-24
Hi,

Just checking to see if anyone knows if and how one can send a cfmail to an outlook recipient as an appointment.

Thanks,
Bonnie
0
Comment
Question by:Bonnie_K
  • 3
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
usachrisk1983 earned 500 total points
ID: 17033303
Send an ICS file to them, that Outlook will allow them to add to their calendar.  Just use CFFILE to build the ICS file, and then use CFMAIL/CFMAILPARAM to mail it to them.  If you need assistance with the ICS format, please let me know.
0
 

Author Comment

by:Bonnie_K
ID: 17033342
Yes, I need help with the ICS file format.  What does it need to contain?  

Thanks usachisk1983, I thought this was not going to be possible!
0
 

Author Comment

by:Bonnie_K
ID: 17033402
I think I figured out the format...now I'm going to test.  I created a mail message and saved it to the .ics format and opened it up and looked around.  I'll let you know how it goes...
0
 
LVL 13

Expert Comment

by:usachrisk1983
ID: 17033986
That's awesome, and glad you figured out ICS files.  Let me know!
0
 

Author Comment

by:Bonnie_K
ID: 17034015
Here's the snippet I ended up using.  Just thought I'd paste it in for others searching for a similar solution.  I think that this will work great.  It seems the only difference is that a user has to open the attachment.  When receiving a calendar mail from another outlook user, it has a different format so the user can click accept / reject.  I don't see this as a problem, we'll see what the person who asked for this thinks..

Thanks again usachrisk1983, you made it possiblt for me to have a productive Monday (unusual :) !

-Bonnie

<cffile action = "write"
file = "c:\inetpub\wwwroot\projects\ics\assignmentfrom#varuser#.ics"
output = "
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
ORGANIZER:MAILTO:#varAssigned_To_Username#@mycompany.us
DTSTART;VALUE=DATE:#DateFormat(varDueDate,'yyyymmdd')#
DTEND;VALUE=DATE:#DateFormat(varDueDate+1,'yyyymmdd')#
TRANSP:OPAQUE
SEQUENCE:0
UID:
DTSTAMP:#DateFormat(Now(),'yyyymmdd')#
DESCRIPTION:Project Number: #varProject_Number#\nTask Number: #varTask#\nTask Description: #varName#\n
SUMMARY:#varProject_Number# Task: #varTask# (#varName#)
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
">

<cfmail
from="#varUser#@mycompany.us"
to="#varAssigned_To_Username#@mycompany.us"
subject="Task Assigment Calendar Entry (#varProject_Number#-#varTask#)"
mimeattach = "c:\inetpub\wwwroot\projects\ics\assignmentfrom#varuser#.ics"
type="html">
<font face="Arial">Please open the attachment to add this task due date to your outlook calendar.</font>
                        
</cfmail>
1

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now