Wednesday 27 January 2016

How to send email in Windows command prompt using only pipes (no files) with newlines?

I want to send email using only pipes without writing the message to a temporary file in Windows XP command prompt. I can do it with for example blat.exe, but I can't get the newlines to work.




I tried this kind of command:



echo something something & echo.more of something | blat.exe - -to my.email.address@domain.com


But this just sends "more of something" and ignores the everything before the last newline (& echo.).

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...