locked
send-message will get error if the attach file name has content @ RRS feed

  • Question

  • use the send-message many time , but i get problem in the yesterday.

    i get error if attach file name content  the @. example file name "6X@CSKA[)JY5SJQ2(08-30-14-44-41).jpg"

    error message is "The specified wildcard character pattern is not valid: 6X@CSKA[)JY5SJQ2(08-30-14-44-41).jpg"

    i think this is a bug.

    • Moved by Bill_Stewart Wednesday, December 12, 2018 9:27 PM Unanswerable drive-by question
    Friday, August 31, 2018 8:50 AM

All replies

  • Send-MailMessage  …. -Attachments '6X@CSKA[)JY5SJQ2(08-30-14-44-41).jpg'

    Only use single quotes.

    The file name is also illegal in Windows and will not work in many utilities.


    \_(ツ)_/


    • Edited by jrv Friday, August 31, 2018 8:58 AM
    Friday, August 31, 2018 8:57 AM
  • the file name not include quotes.


    Sunday, September 2, 2018 4:13 AM
  • the file name not include quotes.


    The filename is illegal with or without quotes. It cannot be used.


    \_(ツ)_/

    Sunday, September 2, 2018 4:16 AM
  • file name is 6X@CSKA[)JY5SJQ2(08-30-14-44-41).jpg

    you has try?

    i try use it name to save test file is work.


    Sunday, September 2, 2018 8:20 AM
  • Use Net.Mail.MailMessage is work.

    Sunday, September 2, 2018 8:22 AM
  • use the send-message many time , but i get problem in the yesterday.

    i get error if attach file name content  the @. example file name is  6X@CSKA[)JY5SJQ2(08-30-14-44-41).jpg

    will get error message show me.  The specified wildcard character pattern is not valid: 6X@CSKA[)JY5SJQ2(08-30-14-44-41).jpg

    and if use Net.Mail.MailMessage is work. 

    i think this is a bug.

    • Merged by jrv Sunday, September 2, 2018 9:01 AM DUPLICATE
    Sunday, September 2, 2018 8:46 AM
  • Post bug requests here: UserVoice

    \_(ツ)_/

    Sunday, September 2, 2018 9:03 AM