0
set mail=backups:
set mail=%mail%"|pc1-OK"
set mail=%mail%"|pc2-OK"
set mail=%mail%"|pc3-OK"
set mail=%mail%"|pc4-OK"

blat.exe -to [email protected] -f [email protected] -server 172.x.x.x -s "test" -body %mail%

gives me an email with the body:

backups:
pc1-OK"
pc2-OK
pc3-OK
pc4-OK

Why is there a " after the first PC?

1 Answer 1

1

Without knowing how does blat internally work, i can not answer why there is only one quote in the output.

But, this is how it should be written

set "mail=backups:"
set "mail=%mail%|pc1-OK"
set "mail=%mail%|pc2-OK"
set "mail=%mail%|pc3-OK"
set "mail=%mail%|pc4-OK"

blat.exe -to [email protected] -f [email protected] -server 172.x.x.x -s "test" -body "%mail%"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.