Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

OK

I'm writing a program for an sms messaging company. Basically the program takes in XML files, (either sent in by email, or generated by an http post to the server). The server processes the xml files and sends them off to the sms provider using a 3rd party API.

 

The server is hosted on the mail server used to recieve the messages, so Instead of recieveing the mail via pop3 or IMAP i can just lift it straight out of the mail server's folder.

The emails are stored as eml files, and as far as i can tell the attachments are in base 64

 

 

My problem is that i cannot figure out a way of extracting the xml files from the emails.

The xml files themselves are sent in with various formats (the contents is in xml, the extention could be anything)

 

Could someone help me.

-Zeo

Posted

Convert.FromBase64String

 

You can use Convert.FromBase64String to convert a base64-encoded attachment into its original file data. Knowing nothing about the EML file type I can only speculate as to how you retrieve the base64 from the EML file beforehand.

 

Good luck :)

Never trouble another for what you can do for yourself.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...