Results 1 to 4 of 4

Thread: Mail file.msg using MailMessage

  1. #1

    Thread Starter
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872

    Mail file.msg using MailMessage

    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?
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Mail file.msg using MailMessage

    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.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Mail file.msg using MailMessage

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872

    Re: Mail file.msg using MailMessage

    - 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
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width