Solved

cfmail and outlook appointment

Posted on 2006-07-03
5
1,108 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
website file permissions 4 71
Intranet Solution - Sharepoint Foundation or up 4 65
Problem to get function 52 106
WebSite Direction 1 41
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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