Skip to content
Advertisement

Incorrect format of sending mail from Linux shell

My file format is as below:

JavaScript

But if I mail it to my mailbox,

JavaScript

the format will be as below:

JavaScript

How can I keep my original format when I send file content to my mailbox!?

Advertisement

Answer

The SMTP specification says that end-of-line in SMTP messages is

JavaScript

where in Unix/Linux the end of line is

JavaScript

Run the text though a tr filter to convert all the n to rn — or pipe it through unix2dos which does the same thing, like;

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement