How can I send a Task Request using vCalender/vTodo format using C#

Status
Not open for further replies.
Outlook version
Outlook 2007
Email Account
POP3
Hi,




I am writing an application where it should be able to send an email as a task request and it should be added to the Outlook task list and as well as in to the email list. But here according to the codings I have done the email is sent properly but it is not added to the task list. It is going as just an email. I have used vCalender/vTODO components to create the structure of the Task request even though the specified component is vTODO the task request is send as an email.


Here I have attached my cording.
If anyone knows the solution for this please help.



private string CreateTask(DateTime start, DateTime end, String body, String sub, String status)
{

StringBuilder sbvCalender2 = new StringBuilder();
sbvCalender2.Append("METHOD: REQUEST");
sbvCalender2.Append("\n");
sbvCalender2.Append("BEGIN:VCALENDAR");
sbvCalender2.Append("\n");
sbvCalender2.Append("PRODID:-//ABC Corporation//NONSGML My Product//EN");
sbvCalender2.Append("\n");
//sbvCalender2.Append("BEGIN:VTODO");
sbvCalender2.Append("BEGIN:VEVENT");
sbvCalender2.Append("\n");
sbvCalender2.Append("SEQUENCE:2");
sbvCalender2.Append("\n");
sbvCalender2.Append("UID:uid4@host1.com");
sbvCalender2.Append("\n");
sbvCalender2.Append("ORGANIZER:MAILTO:manula.m@eyepax.com");
sbvCalender2.Append("\n");
sbvCalender2.Append("DUE:20110415T235959");
sbvCalender2.Append("\n");
sbvCalender2.Append("STATUS:NEEDS-ACTION");
sbvCalender2.Append("\n");
sbvCalender2.Append("SUMMARY:Kolkata Kinght Riders");
sbvCalender2.Append("\n");
sbvCalender2.Append("BEGIN:VALARM");
sbvCalender2.Append("\n");
sbvCalender2.Append("ACTION:AUDIO");
sbvCalender2.Append("\n");
sbvCalender2.Append("TRIGGER:19980403T120000");
sbvCalender2.Append("\n");
sbvCalender2.Append("ATTACH;FMTTYPE=audio/basic:http://example.com/pub/audio-files/ssbanner.aud");
sbvCalender2.Append("\n");
sbvCalender2.Append("REPEAT:4");
sbvCalender2.Append("\n");
sbvCalender2.Append("DURATION:pT1H");
sbvCalender2.Append("\n");
sbvCalender2.Append("END:VALARM");
sbvCalender2.Append("\n");
//sbvCalender2.Append("END:VTODO");
sbvCalender2.Append("BEGIN:VEVENT");
sbvCalender2.Append("\n");
sbvCalender2.Append("END:VCALENDAR");

MessageBox.Show(sbvCalender2.ToString());
return sbvCalender2.ToString();:confused:
}
 
Outlook version
Outlook 2007
Email Account
POP3
Hi,

Thank you very much for your information. Hope they will be more helpful for my question.

Regards

Manula.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M How can I send task request using vCalender/VTodo component using C# Using Outlook 2
D Using a VBA Custom Form to Send Reoccurring Email Upon Task Completion Outlook VBA and Custom Forms 4
Z Item.Recipients for Task Assignment on Send Outlook VBA and Custom Forms 10
E Send a Reminder/Task to certain Email Recipient Using Outlook 5
Diane Poremsky Send a Task Status Report Using Outlook 0
S How to send an OUTLOOK task to a contact out of my active directory? Using Outlook 2
M Send email on task creation? Using Outlook 2
A Send Email to Task while sending to Email address Outlook VBA and Custom Forms 1
O Scheduled Task Fails running Code to send Outlook Mail from Excel. Outlook VBA and Custom Forms 9
K send email when task changes Outlook VBA and Custom Forms 3
M I cant send emails via Outlook in my W10 PC. Using Outlook 3
K Run a script rule to auto 'send again' on undeliverable emails? Outlook VBA and Custom Forms 1
G Send a greeting message to a contact on birthday Outlook VBA and Custom Forms 5
T Outlook creates a copie of every mail I send Using Outlook.com accounts in Outlook 4
R How to restrict GWSMO sync to Outlook Send/Receive cycles Using Outlook 0
pwatts2 Restrict some lists to only BCC send option Outlook Wishlist 2
M Outlook, send to > mail recipient - results in plain text email Using Outlook 1
A Unflag Inbox and Flag Inbox with Orange Category After Item is send Outlook VBA and Custom Forms 3
glnz O365 - How to send from acct 2 but showing email name from acct 1 as From - alias? Using Outlook 0
S Outlook Macro to send auto acknowledge mail only to new mails received to a specific shared inbox Outlook VBA and Custom Forms 0
diver864 vba for a rule to automatically accept meeting requests with 'vacation' in subject, change to all-day event, change to free, don't send reply Outlook VBA and Custom Forms 1
PGSystemTester VBA To Change AppointmentItem.BusyStatus From MeetingItem Before Send Using Outlook 0
C Synchronizing subscribed folders causes hanging during send/receive process Using Outlook 2
M Extract all links from Outlook email, send to Excel Using Outlook 2
A VBA macro for 15 second loop in send and received just for 1 specific mailbox Outlook VBA and Custom Forms 1
O Outlook 365 - suddenly unable to send using Gmail POP3 Using Outlook 10
T After I send a new email, it remains in the Draft folder Using Outlook.com accounts in Outlook 3
B Programmatically force html send and insert clipboard contents into body Outlook VBA and Custom Forms 0
S Change VBA script to send HTML email instead of text Outlook VBA and Custom Forms 3
M ERROR: None of your email accounts could send to this recipient Using Outlook 2
C Send/receive error 80040119 Using Outlook 2
J Send Again NDR Outlook VBA and Custom Forms 1
J Add an Attachment Using an Array and Match first 17 Letters to Matching Template .oft to Send eMail Outlook VBA and Custom Forms 2
ChrisK2 Send email to advertise@slipstick.com fails: "The group advertising isn't set up to receive messages from..." Using Outlook 3
B resend if no reply and send an automatic reminder Outlook VBA and Custom Forms 0
F Send As a Gmail account via outlook Web Using Outlook 3
R auto send email when meeting closes from a shared calendar only Outlook VBA and Custom Forms 2
X Unable to send an email from one account to another on same PC Using Outlook 2
S Meeting Invite arrives from Wrong ("send-as") Sender Using Outlook 1
M VBA to send reminder email if no response Using Outlook 13
M Can't send email in outlook.com Using Outlook 9
R Can't Send calendar share invite Using Outlook 5
R Can't send messages to groups in Outlook Using Outlook 2
J Updating existing entry on shared calendar wants to send update from delegate Using Outlook 0
M Send/Receive error 0x800CCC0F Using Outlook 0
soadfan Outlook won't send e-mail when offline Outlook VBA and Custom Forms 19
B When working on emails in a certain folder, when I hit reply or reply all, I would like it re always reply all and add an email address to send to Outlook VBA and Custom Forms 3
N Outlook 2010 will not send nor receive Using Outlook 4
I Outlook 2013 Send problem - 'Not Responding' forever Using Outlook.com accounts in Outlook 10
K Delay Send and Mail Merge Outlook VBA and Custom Forms 4

Similar threads

Top