muquit / mailsend

A program to send mail via SMTP from command line
Other
294 stars 68 forks source link

add variables into body inline message (-M) #142

Open mfran2002 opened 5 years ago

mfran2002 commented 5 years ago

Hi all, if I try this:

set mytime="TIME/T" set message="mail sent at %mytime%"

mailsend1.19.exe -starttls -smtp mysmtp -port 25 -auth -user mymail -password mypwd -t myreceipt +cc +bc -f myfrom -sub "%message%" -M "%message%"

it gets me error

is it possible to put some variables into inline subject (-sub) and body (-M)?

thanks