472,992 Members | 3,518 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,992 software developers and data experts.

How to save and load MailMessage ?

How to save and load MailMessage into/from .eml file ?

I need methods like
MailMessage.Save( string FileName )
and
MailMessage.Load( string FileName )
???

--
Best regards,

Oleg Subachev
su******@ural.ru
Jun 27 '08 #1
2 12610
You can read/write from an eml file like that

Dim oMail As SmtpMail = New SmtpMail("Test")
oMail.SaveAs( "c:\test.eml", True )
Regards,
Mudassar Hassan
http://mudassarhassan.spaces.live.com/
"Oleg Subachev" wrote:
How to save and load MailMessage into/from .eml file ?

I need methods like
MailMessage.Save( string FileName )
and
MailMessage.Load( string FileName )
???

--
Best regards,

Oleg Subachev
su******@ural.ru
Jun 27 '08 #2
You have to use some 3rd party component to save/load an eml file like Email
Architect. Use EASendMail SMTP COMPONENT for that purpose.

See this http://www.emailarchitect.net/easendmail/ for more details

Regards,
Mudassar Hassan
http://mudassarhassan.spaces.live.com/
"Mudassar Hassan" wrote:
You can read/write from an eml file like that

Dim oMail As SmtpMail = New SmtpMail("Test")
oMail.SaveAs( "c:\test.eml", True )
Regards,
Mudassar Hassan
http://mudassarhassan.spaces.live.com/
"Oleg Subachev" wrote:
How to save and load MailMessage into/from .eml file ?

I need methods like
MailMessage.Save( string FileName )
and
MailMessage.Load( string FileName )
???

--
Best regards,

Oleg Subachev
su******@ural.ru

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alexander | last post by:
Hi! I need to write an app that downloads an email (pop3), and saves it to a file. The file should be opened again and parsed to get subject, body, attachments... Inline-images and other...
9
by: ukjock | last post by:
I am very new to the whole Visual Basic .net scene, and I am trying to get to grips with it... I thought I would try and learn a programming language, and I was advised on vb.net. I have already...
14
by: Mr.D | last post by:
How do I save/load the contents of a Treeview to a file? I have found several good examples written i VB6, but not a single one for VB.NET. Please help. ---- Tim
12
by: John | last post by:
Hi Is there a way to save the layout of controls (position, size, visibility, appearance etc.) to a file (xml?) and also be able to load the layout from a file? The idea being that these file...
2
by: =?Utf-8?B?SnVhbiBEZW50?= | last post by:
Hi, I am using XmlWriter/XmlReader to save.load classes. However, one of the members of one class is of type Type. How can I write and then read that as Xml? -- Thanks in advance, Juan...
7
by: Marren02 | last post by:
Hi, I have looked on the internet for quite some time concerning this issue The problem is loads and loads and loads of people use their examples instead of simply stating what code you use...
10
by: Marren02 | last post by:
Hi, I recently just unsubscribed my other thread due to the fact that it went against the posting regulations... If you feel offended by what I posted, I apologize I need Code for a save...
1
by: De Ward | last post by:
I have created a form that allows the user to upload an image, type a description in a rich textbox, type the name in one textbox, enter in the date of when completed and expected to be completed,...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.