开发者

SMTP Text file Attachment problem

I am sending a mail with text attachment from my VB6 application.

I am using Content-Transfer-Encoding:7bit in header for text attachment.

Problem is that after downloading file from mail,new lines are not displayed properly in NOTEPAD.

But other applications such as notepad++,wordpad are properly displaying the new lines as they are in the origin开发者_JAVA技巧al text file.

Where i am going wrong?


My first guess would be that you are ending your lines with just a new-line, instead of a carriage-return/new-line pair. The windows standard is that you need cr/nl at the end of each line, while Linux puts only nl. Notepad chokes on lines that end with just nl, but Wordpad figures it out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜