login about faq

When I am reading attachment file name using string attachementFileName = mail.GetAttachmentFilename(0); I am getting Illegal character in file name error message on server and file is not getting saved. But if I receive the same file second time than it is working fine and i am able to save file. Example.. Attached File Name: PlanTO AMSTERDAM v_2.0.xls Is read as : Plan TO AMSTERDAM v_2.0.xls

Attached File Name: Plan_v2 0(deviation pointTO freeport).xls Is read as : Plan_v2 0(deviation point TO freeport).xls

This is not reproducible at local machine. Can anyone please suggest me solution for this?

asked Mar 07 '13 at 12:47

dharmendrap's gravatar image


edited Mar 07 '13 at 13:16

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 07 '13 at 12:47

Seen: 1,852 times

Last updated: Mar 07 '13 at 13:16

powered by OSQA