473,698 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

import emails from webserver

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.Htt pWebRequest)Htt pWebRequest.Cre ate("http://email-server/Exchange/account/Inbox/EmailSubject.EM L");
Request.Credent ials = CredentialCache .DefaultCredent ials;
Request.Method = "GET";
Request.Headers .Add("Translate ", "f");
Response = (HttpWebRespons e)Request.GetRe sponse();
ResponseStream = Response.GetRes ponseStream();
sr = new StreamReader(Re sponseStream, Encoding.UTF8);
s = sr.ReadToEnd();
Console.WriteLi ne(s);
Feb 20 '07 #1
1 1465
On Feb 20, 9:09 pm, "Nick C" <bef...@gmail.c omwrote:
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.Htt pWebRequest)Htt pWebRequest.Cre ate("http://email-server/Exchange/account/Inbox/EmailSubject.EM L");
Request.Credent ials = CredentialCache .DefaultCredent ials;
Request.Method = "GET";
Request.Headers .Add("Translate ", "f");
Response = (HttpWebRespons e)Request.GetRe sponse();
ResponseStream = Response.GetRes ponseStream();
sr = new StreamReader(Re sponseStream, Encoding.UTF8);
s = sr.ReadToEnd();
Console.WriteLi ne(s);
The url to get all emails has to be without particular subject

http://email-server/Exchange/account/Inbox/

Feb 20 '07 #2

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

Similar topics

5
3127
by: simonc | last post by:
I've been programming in assembler and C/C++ for a number of years, but I'm only just starting down the road of PHP & MYSQL. I have a couple of questions: (1) Before I start writing my own code, to learn from, and also avoid re-inventing the wheel, does anyone know of any existing source that implements a (basic or complex) play-by-email system using PHP and maybe MYSQL?
10
4975
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are working with we put these mailshots in the bcc field of the mails. This can sometimes cause a problem as we are getting alot of mails bounced back. I would like to write a script to have these emails sent out individually using the to: field of the...
1
1308
by: Tim | last post by:
Hi all, I would like people to be able to send emails with keywords in the subject line. I would then like my server/website/asp page to capture the email, parse the subject and react accordingly. Can anyone point me in the right direction? Not sure if it is an ASP issue, but that's the environment I'm working in.
3
2222
by: VB Programmer | last post by:
My company has it's own webserver, which is going to host our ASP.NET web application. We want the website to be able to send out emails. 1. What do I need on the server so that it has the abillity to send out emails? It is a Windows 2000 Professional SP3 server. 2. Any examples (code, etc...) on how to send out emails via an ASP.NET webform? Thanks!
2
1496
by: leeroy881 | last post by:
Is there a way to automatically import incoming emails into a SQL Server Database? I know it is inefficient, but we have to run a number of rules on the email after it is received. Store it in a database and be able to connect other things, meetings, contacts, etc. Moving it back and forth in chunks can be difficult and the overhead could spiral out of control. So we were thinking of moving it to the DB as it was retrieved. What do you...
1
1044
by: Nick C | last post by:
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;
10
3021
by: crazycooter | last post by:
I found an old thread on this (http://groups.google.com/group/alt.php/ browse_thread/thread/751edb9c723316c4/ea9bf92a9c6b807c?lnk=gst&q=mail() +duplicate&rnum=7#ea9bf92a9c6b807c), but there didnt seem to be a resolution. I also noticed that this was a pretty old thread and there didn't seem to be anything newer in the search results. Regardless, I have a very similar problem; I am consistently getting five emails per each PHP mail()...
1
1024
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post by:
Hi, Currently I have a VB.NET app which sends an HTML email to a customer. The email has a textbox form field and submit button. The customer inputs a date, clicks submit and that form sends the information to an ASPX page we have on our webserver which updates the database with the information. The problem is that some email programs like Outlook will not Submit the form properly, due possibly to the security settings. So what we...
6
2488
by: Isecretl | last post by:
Dear Friends, As i am totally without knowledge on VB, would like to check you guy as I have a little situation on my hands now, the situation is described as follows, I am using MS exchange 03 server as my mail server and I have a acess 2003 as my database for my web application Now from time to time I will receive certain emails with specific headers, how can I pick up these emails by detecting their subject header and thereafter...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9027
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.