muquit / mailsend-go

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

New lines in -msg #22

Closed ragimiri closed 4 years ago

ragimiri commented 4 years ago

Hi, is it possible to add new lines in -msg? If not, is it possible to implement this?

muquit commented 4 years ago

It works fine in Linux/Unix. Example:

body -msg 'This is a message.
This is another line.
This is yet another line'

body command also takes a flag -file. For a long message, you can create a temp file from a script and specify the path with body -file /path/file.txt

Thanks.

ragimiri commented 4 years ago

Unfortunately that does not work on Windows. I was hoping for some special chars support, like \n.

muquit commented 4 years ago

ok. I will add this support in the next release. It will be something like:

body -msg "This is a message.\nThis is a new line.\nThis is yet another new line"

And I will replace \n with real new line. It should work.