473,404 Members | 2,179 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,404 software developers and data experts.

Web Application needs to detect and retrieve emails

Hello,

I was just been given a project and I have some questions on how to
accomplish the first part of the task.

If a user sends an email to a specific email address I need to detect that
an email is waiting and then retrieve the email. I will then process the
email but that part of the task is not a problem. The problem is how to
detect that an email is waiting. Can this be accomplished with ASP or will I
need to write this in .NET or if there is another way to accomplish this
task. I was thinking of a timer to poll the email address periodically but I
do not think I can use a timer in ASP, which is why I am thinking a .NET
application. I was also thinking that there might be a third-party control
that I could use but would really rather not use a control if possible.

My current choice is to do this in ASP as our website currently resides on a
shared server that does not support .NET. My gut feeling is that we will
need to move the site to a shared server that supports .NET or we might need
to move to a dedicated server.

Any advice from the Guru's in this forum (and the non-Guru's) would be
greatly appreciated.

Cheers,

Richard
Nov 19 '05 #1
3 1806
Hey Richard,

Not a guru, but I would think that if the email is going into a folder on
the server, you just need to use the FileSystemWatcher Class to detect the
presence of an email.

It seems like a service would be better for this than a Web application.

http://msdn.microsoft.com/library/de...ClassTopic.asp

Ken
"Richard Thornley" <rh**@thorsoft.com> wrote in message
news:OD****************@tk2msftngp13.phx.gbl...
Hello,

I was just been given a project and I have some questions on how to
accomplish the first part of the task.

If a user sends an email to a specific email address I need to detect that
an email is waiting and then retrieve the email. I will then process the
email but that part of the task is not a problem. The problem is how to
detect that an email is waiting. Can this be accomplished with ASP or will
I need to write this in .NET or if there is another way to accomplish this
task. I was thinking of a timer to poll the email address periodically but
I do not think I can use a timer in ASP, which is why I am thinking a .NET
application. I was also thinking that there might be a third-party control
that I could use but would really rather not use a control if possible.

My current choice is to do this in ASP as our website currently resides on
a shared server that does not support .NET. My gut feeling is that we will
need to move the site to a shared server that supports .NET or we might
need to move to a dedicated server.

Any advice from the Guru's in this forum (and the non-Guru's) would be
greatly appreciated.

Cheers,

Richard


Nov 19 '05 #2
You have a lot of options on this Richard; as Ken points out you first want
to define your mailserver support requirements, e.g.

? Is all your email going into an Exchange server
? Are these dedicated email addresses that only your application will be
monitoring
? If yes, are you planning to receive this mail locally using
Outlook or something similar
? Do you need to access outside mail servers

Once you know this, you can choose to support (at least) three different
ways of getting at the email;

+ By reading directly from the mailserver using proprietary APIs (e.g.
Exchange)
+ using mailserver-specific OLE automation (or other APIs)
+ by using Outlook OLE automation
+ by using POP/IMAP
+ By reading files in a local mailstore, on your own HDD;
+ using Outlook OLE automation
+ by reading files directly
+ by reading files using a third-party library
+ By using POP/IMAP
+ via Microsoft's built-in collaboration data objects (CDO)
+ via third-party libraries

I would use POP/IMAP in nearly all cases since it's the most standards-based
solution. It works fine with Exchange or any other mailserver, so you're
covered if your support requirements ever have to change. I also prefer it
over using a local mailstore, because it keeps my configuration centralized,
and I'm not reliant on a separate client app to get my email for me.

For POP support I use a third-party email library from
www.advancedintellect.com that works very smoothly.

All the best,

/// M
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:#2**************@TK2MSFTNGP10.phx.gbl...
Hey Richard,

Not a guru, but I would think that if the email is going into a folder on
the server, you just need to use the FileSystemWatcher Class to detect the
presence of an email.

It seems like a service would be better for this than a Web application.

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemIOFileSystemWatcherClassTopic.asp
Ken
"Richard Thornley" <rh**@thorsoft.com> wrote in message
news:OD****************@tk2msftngp13.phx.gbl...
Hello,

I was just been given a project and I have some questions on how to
accomplish the first part of the task.

If a user sends an email to a specific email address I need to detect that an email is waiting and then retrieve the email. I will then process the
email but that part of the task is not a problem. The problem is how to
detect that an email is waiting. Can this be accomplished with ASP or will I need to write this in .NET or if there is another way to accomplish this task. I was thinking of a timer to poll the email address periodically but I do not think I can use a timer in ASP, which is why I am thinking a ..NET application. I was also thinking that there might be a third-party control that I could use but would really rather not use a control if possible.

My current choice is to do this in ASP as our website currently resides on a shared server that does not support .NET. My gut feeling is that we will need to move the site to a shared server that supports .NET or we might
need to move to a dedicated server.

Any advice from the Guru's in this forum (and the non-Guru's) would be
greatly appreciated.

Cheers,

Richard

Nov 19 '05 #3
Hello,

Thanks for the reply. I need to check but I believe the email is going to a
standalone email server which might even be a Unix. If that is true then
this solution will not work. The good news is I did learn some about the
FileSystemWatcher class that I did not know before. Thanks!

Cheers,
Richard
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hey Richard,

Not a guru, but I would think that if the email is going into a folder on
the server, you just need to use the FileSystemWatcher Class to detect the
presence of an email.

It seems like a service would be better for this than a Web application.

http://msdn.microsoft.com/library/de...ClassTopic.asp

Ken
"Richard Thornley" <rh**@thorsoft.com> wrote in message
news:OD****************@tk2msftngp13.phx.gbl...
Hello,

I was just been given a project and I have some questions on how to
accomplish the first part of the task.

If a user sends an email to a specific email address I need to detect
that an email is waiting and then retrieve the email. I will then process
the email but that part of the task is not a problem. The problem is how
to detect that an email is waiting. Can this be accomplished with ASP or
will I need to write this in .NET or if there is another way to
accomplish this task. I was thinking of a timer to poll the email address
periodically but I do not think I can use a timer in ASP, which is why I
am thinking a .NET application. I was also thinking that there might be a
third-party control that I could use but would really rather not use a
control if possible.

My current choice is to do this in ASP as our website currently resides
on a shared server that does not support .NET. My gut feeling is that we
will need to move the site to a shared server that supports .NET or we
might need to move to a dedicated server.

Any advice from the Guru's in this forum (and the non-Guru's) would be
greatly appreciated.

Cheers,

Richard

Nov 19 '05 #4

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

Similar topics

6
by: richardtinkler | last post by:
I need to create an online email application which will receive and send emails from given accounts using ASP. I am aware that I can use ASP components such as ASPEmail or ASPSmartMail to send...
2
by: Jake | last post by:
Hi, I originally posted in the db group but thought this might be more appropriate here. I have a scheduling application which allows the user to reserve timeslots for various things but I'm...
5
by: Emmett Power | last post by:
Hi, I use Access to send emails through SMTP. I'd like to mirror the process and retrieve emails from my SMTP/Pop3 server without the intermediary of Outlook. I don't want to spend a lot of...
2
by: will | last post by:
hi, my ISP doesn't have webmail service, so i use TcpClient & Friends to issue POP3 commands to retrieve emails, store data on a website, and use that website to view emails. it all works...
6
by: Andrea | last post by:
I need to detect when another application is launched. I'd need to know also when a new folder is opened in explorer. I'm developing an application to speed up access to frequently used...
1
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
3
by: Peter Strøiman | last post by:
Hi. I have a web application that needs to run tasks at regular intervals. E.g. it must send out emails every night to people who subscribe to that service. I have come up with one solution,...
7
by: merziyah | last post by:
I'm new to posting issues online, so bare with me... Does anyone have any clues on this: I have an application that is set to run as a service and it sends an email if an error is encountered. The...
5
by: Edgard Guilherme | last post by:
Hello all, b4 anything, i am using iis smtp to send the emails.. is there anyway to detect if the "To" email is a valid one ? Like for eg. To = sadjwqewe@askjqw.com (so this email of course...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
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...
0
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...
0
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...

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.