Receive POP3 e-mails as .eml file
-
Hi everyone, My question is how to download emails from a pop server and save them as *.eml or *.mht files to localdisk as oultlook does ? Now what I know is that an .eml file can have images,attachments and all the e-mail formatting in it. So if I use a simple pop3 client to download message it will download the text part of the e-mail not full formatting - that's what I'm searching for! I found this link : http://www.example-code.com/delphi/download-pop3-email-to-eml.asp but the library is not free or open source , can you find something like this , my dear friends ? I also found another thing :http://www.developerfusion.co.uk/show/2453/ But It uses the winsock control which I can't found in VB.NET. Any one please help.. Thanks, Dan
-
Hi everyone, My question is how to download emails from a pop server and save them as *.eml or *.mht files to localdisk as oultlook does ? Now what I know is that an .eml file can have images,attachments and all the e-mail formatting in it. So if I use a simple pop3 client to download message it will download the text part of the e-mail not full formatting - that's what I'm searching for! I found this link : http://www.example-code.com/delphi/download-pop3-email-to-eml.asp but the library is not free or open source , can you find something like this , my dear friends ? I also found another thing :http://www.developerfusion.co.uk/show/2453/ But It uses the winsock control which I can't found in VB.NET. Any one please help.. Thanks, Dan
The file format has absolutely nothing to with a POP3 client. There is no file format specification for saving messages. The .eml format is specified by Microsoft and Outlook, not the POP3 protocol. It's also known as the
message/rfc822
MIME type. You can find out everything about the format here[^], or just Google for "message/rfc822 format".A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
The file format has absolutely nothing to with a POP3 client. There is no file format specification for saving messages. The .eml format is specified by Microsoft and Outlook, not the POP3 protocol. It's also known as the
message/rfc822
MIME type. You can find out everything about the format here[^], or just Google for "message/rfc822 format".A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Hi Dave Kreskowiak, Ok , Now I understood the real matter . Thanks for help. :cool: But Is there any way that I can use the winsock example that I showed you in the first post ? I tried but on every line I'm getting an error ! :doh: If you have any idea ... ?? :-> Thanks, dan
-
Hi Dave Kreskowiak, Ok , Now I understood the real matter . Thanks for help. :cool: But Is there any way that I can use the winsock example that I showed you in the first post ? I tried but on every line I'm getting an error ! :doh: If you have any idea ... ?? :-> Thanks, dan
The code you found was written for VB6, not VB.NET. It's possible to convert it. You'd have to add a Reference to the old Winsock control, I think it's in the list under the COM tab, Microsoft Winsock Control.
Dan`M wrote:
I tried but on every line I'm getting an error !
I'd scrap the code and rewrite it using .NET Framework classes, but describing how those work is way beyond what you can fit in a couple of forum posts. You're getting most of these error messages because you don't have a reference to the old Winsock control.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
The code you found was written for VB6, not VB.NET. It's possible to convert it. You'd have to add a Reference to the old Winsock control, I think it's in the list under the COM tab, Microsoft Winsock Control.
Dan`M wrote:
I tried but on every line I'm getting an error !
I'd scrap the code and rewrite it using .NET Framework classes, but describing how those work is way beyond what you can fit in a couple of forum posts. You're getting most of these error messages because you don't have a reference to the old Winsock control.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Hi, I downloaded old winsock.dll from internet add added the reference. But i have still some errors.. Can you convert & post the code for VB.NET please ?:-> Thanks, Dan
-
Hi, I downloaded old winsock.dll from internet add added the reference. But i have still some errors.. Can you convert & post the code for VB.NET please ?:-> Thanks, Dan
Dan`M wrote:
I downloaded old winsock.dll from internet add added the reference.
Very big mistake. I already told you how to do it, and that didn't involve downloading a .DLL. The one you downloaded is also the wrong file!
Dan`M wrote:
Can you convert & post the code for VB.NET please ?
I can't because my time is short. I do this for about 5 minutes, whenever I get a chance.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007