Is it possible to load a file from harddisk (file.msg, mail-file created with MS outlook) and mail it using the mailmessage-class?
or is there any other way?
Printable View
Is it possible to load a file from harddisk (file.msg, mail-file created with MS outlook) and mail it using the mailmessage-class?
or is there any other way?
That depends on how the file is created. Try opening it in notepad and see what comes up, is it readable? If it is, it will be easy to get the information out, but if it isnt, its alot harder, if its even possible.
You can attach it to a MailMessage and then the recipient will be able to open it with their mail client. Otherwise you'd have to do as Atheist suggests and open the file and get the data out of it to assign to the appropriate properties of your MailMessage object.
- The text is not readable when I use notepad.
- I do not want to attach it in another mail. (If there's no other way I'll have tot do it like that).
- I've seen some freeware components that are able to do what i want. I guess i'll have to try one of them.
- Thanks for the help