I would like to create a batch file to send mails with the local mail client. The script should prompt the user for the receiver and the amount, which is used as an url parameter later on. Currently I have this script
@echo off
set /p "to=To: "
set /p "amount=Amount: "
start mailto:%to%^
?subject=Test^
&body="this is a longer text with
file line breaks, text linebreaks\n
and some urls with parameters like https://www.foo.bar/%amount%"
pause
and I'm struggling with the body
string. I would like to
- add line breaks within the file to increase the readability
- add line breaks for the string to format the mail text
- remove the double quotes from the text
How would I do that? Any help will be appreciated.