muquit / mailsend-go

mailsend-go is a multi-platform command line tool to send mail via SMTP protocol
Other
166 stars 16 forks source link

STDIN to msg body on Windows not possible #40

Open zhladik opened 3 years ago

zhladik commented 3 years ago

Hello,

old mailsend (and similar mail senders tools as BLAT etc.) are often used for sending result of some scripts via pipe as body:

sometool | mailsend ....

on mailsend-go i estimated that syntax may be

... body -file -

But on windows i get error

_ERROR: File - to add a mail body does not exist_

Workaround - use of temp file and "body -file" syntax possible but scripts must be modified and not compatible with other similar tools.