Menu

#47 Change standard separator comma for attachments

v1.0 (example)
open
nobody
5
2016-04-28
2016-04-28
Ralf Bender
No

Hi,
I know that comma will be used to separate files and other stuff.
But I must send files with a comma in their filenames and no possibility to change this circumstance.

Is there a way to change the standard separator?
Or any other way without changing the filename?

Here my example what I try to do:

set SERVER=127.0.0.1:2525
set USER=sendout@ralfbb-test.local
set PW=secret
set FROMNAME=sendout@ralfbb-test.local
set TO=nurmail1@ralfbb-test.local
set SUBJECT="Subject test - attached file!"
set BODY="Oh yes my dear lad!"
set BODYF="c:\Mailbody.txt"
set ATTACH="c:\517-BS24430-210416-NULL-0,750.pdf"

blat -server %SERVER% -f %FROMNAME% -u %USER% -pw %PW% -to %TO% -subject %SUBJECT% -bodyF %BODYF% -attach %ATTACH% -debug -log blat.log

Discussion

  • Chip

    Chip - 2016-04-28

    Change your ATTACH line to this:

    set ATTACH="\"c:\517-BS24430-210416-NULL-0,750.pdf\""

    The \" tells Blat to take the text verbatim between the two \".

    Chip

     
  • Ralf Bender

    Ralf Bender - 2016-04-28

    @Chip
    You made my day. Thanks

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.