locked
Not able to attach an textfile to ICalendar RRS feed

  • Question

  • User-1822591464 posted

    I am trying to create .ics file and this article http://msdn.microsoft.com/en-us/library/bb655909.aspx help me do that.

    I am able to attach the file to the mail but its not recognizing the file type and file name: Below is the code I am using to attach the file

    sbICSFile.AppendLine("ATTACH;FMTTYPE=text/plain;ENCODING=BASE64;NAME=test.txt;VALUE=BINARY:" + System.Convert.ToBase64String(fileData, 0, fileData.Length));

     

    Thanks,

    Sukanya

    Tuesday, September 28, 2010 10:29 AM

Answers

  • User-1822591464 posted

    Finally got it...

    Had to Replace  "NAME=test.txt" with "X-FILENAME=test.txt"

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 28, 2010 12:43 PM