473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

E-mail reader

Hi,

I need to write a Windows Service which checks (with a timer) e-mail in a
specific Exchange mailbox. Then if there is new email, download body, save
attachments. How can i do this with VB.NET or C#? Maybe somebody can post
some URL's or example code. I don't know how i can do such a thing.

Hope somebody can help me.

Kind regards,
Rick Smit
Jul 21 '05 #1
5 1570
Try looking for a pop3 component, you can write your own but its not an easy
task but should you choose to do that look here for a starter

http://www.developerfusion.com/show/4071/

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Rick Smit" <ri******@zonnet.nl> wrote in message
news:#4**************@TK2MSFTNGP11.phx.gbl...
Hi,

I need to write a Windows Service which checks (with a timer) e-mail in a
specific Exchange mailbox. Then if there is new email, download body, save
attachments. How can i do this with VB.NET or C#? Maybe somebody can post
some URL's or example code. I don't know how i can do such a thing.

Hope somebody can help me.

Kind regards,
Rick Smit

Jul 21 '05 #2
good tutorial site:
www.vbip.com
regards

Rick Smit wrote:
Hi,

I need to write a Windows Service which checks (with a timer) e-mail in a
specific Exchange mailbox. Then if there is new email, download body, save
attachments. How can i do this with VB.NET or C#? Maybe somebody can post
some URL's or example code. I don't know how i can do such a thing.

Hope somebody can help me.

Kind regards,
Rick Smit


Jul 21 '05 #3
Hi Rick,

As you have probably discovered, you may be able to access your exchange box
using the POP3 protocol, depending on whether your organization has enabled
this kind of communication. If they have not, you will not be so lucky.
Your other options are: MAPI and WebDAV. MAPI is primarily a client
technology, so if you are accessing from a client machine (that is running
in the user's environment), then this is your best option.

If you are on a server, and you need to access the contents of a web folder,
you will need to use WebDAV. This is the same technology that Outlook Web
Access uses. If your server doesn't have OWA enabled for that particular
account, you won't be able to use WebDAV.

Note: while WebDAV may be appealing, there is nearly no documentation on
using it, and it has some difficulties that may catch you by surprise.
Microsoft has said that they may come out with a component (XSO) to make
this work better in the next version of Exchange, but we don't know when
this will appear.

Does this help?
--- Nick

"Rick Smit" <ri******@zonnet.nl> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Hi,

I need to write a Windows Service which checks (with a timer) e-mail in a
specific Exchange mailbox. Then if there is new email, download body, save
attachments. How can i do this with VB.NET or C#? Maybe somebody can post
some URL's or example code. I don't know how i can do such a thing.

Hope somebody can help me.

Kind regards,
Rick Smit

Jul 21 '05 #4
I've been using evaluation copies of .Net email libraries Mail.Net and
Mime.Net from www.abderaware.com. They've been working well for me so far.

Tom Dacon
Dacon Software Consulting

"Rick Smit" <ri******@zonnet.nl> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Hi,

I need to write a Windows Service which checks (with a timer) e-mail in a
specific Exchange mailbox. Then if there is new email, download body, save
attachments. How can i do this with VB.NET or C#? Maybe somebody can post
some URL's or example code. I don't know how i can do such a thing.

Hope somebody can help me.

Kind regards,
Rick Smit

Jul 21 '05 #5
They are very good products........

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Tom Dacon" <td****@community.nospam> wrote in message
news:eF*************@TK2MSFTNGP11.phx.gbl...
I've been using evaluation copies of .Net email libraries Mail.Net and
Mime.Net from www.abderaware.com. They've been working well for me so far.

Tom Dacon
Dacon Software Consulting

"Rick Smit" <ri******@zonnet.nl> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Hi,

I need to write a Windows Service which checks (with a timer) e-mail in a specific Exchange mailbox. Then if there is new email, download body, save attachments. How can i do this with VB.NET or C#? Maybe somebody can post some URL's or example code. I don't know how i can do such a thing.

Hope somebody can help me.

Kind regards,
Rick Smit


Jul 21 '05 #6

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

Similar topics

3
by: jeef | last post by:
Im emailing using Jmail and i'd like to send an html encoded email. The form is setup and it emails out but when i receive it the comes back as the html code. what do i need to do so that it...
2
by: AGGoogle | last post by:
I might be doing something stupid here but I really need some help. Can someone please tell me why can't I get this xml to pass my validation when I use XmlValidatingReader? The XMLSpy seems to...
3
by: Craig Lister | last post by:
Newbie alert! I am trying to get data from my mySQL database... With some help, I have got this far, but there is an exception in data.dll (??) on the : "OleDbDataReader Reader =...
4
by: Ram | last post by:
I am using ADO.Net data reader to retrieve data from main frame. I am getting timestamp which is 26 (yyyy-mm-dd hh- mm-ss.123456) bytes as sqltimestamp data type. I am using data reader to...
2
by: Li-fan Chen | last post by:
Hi, We find ourselves in the unenviable position of creating an email reader, may I ask how we best parse incoming messages? Ideally we would point the parser at a email stored in a POP3--grab...
5
by: CDMAPoster | last post by:
I have changed how I get the shell path for Acrobat Reader based on code posted by John deKrafft. Does anyone see any problems with this code running on various Windows OS's? '--Begin Module...
3
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, how do you resolve this problem? i have a public procedure in my DataAccessLayer that gets a SqlDataReader how do i close the reader from inside the DataAccessLayer if I'm returning...
3
by: Shelly | last post by:
When using the mail() call, I formatted the message with "\n" for new lines. The text of the email ran together without line breaks. I also tried "\r\n" and that also didn't work. The email...
3
by: popoandtheeggman | last post by:
Can someone make a program that will check an email account, upload an email, and scroll the text or email subject line across a dedicated monitor? The specific application is for a noisy...
6
by: dgleeson3 | last post by:
Hello All I have VB code (.Net 2005) reading from an SQL server 2005 database. Im getting InvalidCastException when doing reader.GetInt32(0) Im simply reading an int from a simple database. It...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.