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.
精彩评论