Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2007

Tip: Looking for answers? Try searching our database.

import emails

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick C - 20 Feb 2007 11:42 GMT
Hi

I am trying to  import emails from a webserver. This code retrieves only 1
email.  I also would like to save them into an xml file?

thanks N

 Request =
(System.Net.HttpWebRequest)HttpWebRequest.Create("http://email-server/Exchange/account/Inbox/EmailSubject.EML");
 Request.Credentials = CredentialCache.DefaultCredentials;
 Request.Method = "GET";
 Request.Headers.Add("Translate", "f");
 Response = (HttpWebResponse)Request.GetResponse();
 ResponseStream = Response.GetResponseStream();
 sr = new StreamReader(ResponseStream, Encoding.UTF8);
 s = sr.ReadToEnd();
 Console.WriteLine(s);
Bruno van Dooren [MVP VC++] - 20 Feb 2007 14:15 GMT
> I am trying to  import emails from a webserver. This code retrieves only 1
> email.  I also would like to save them into an xml file?
[quoted text clipped - 11 lines]
>  s = sr.ReadToEnd();
>  Console.WriteLine(s);

Hi,

You are programming C#.
You might try asking in the C# forum (this is a C++ forum) but I think your
best bet is to ask in one on the framework related forums.

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.