Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6017001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:03:58+00:00 2026-05-23T03:03:58+00:00

I have an existing asp.net c# application for which I’d like to implement a

  • 0

I have an existing asp.net c# application for which I’d like to implement a feature that allows users to post content via email. A user would send an email to a designated address and the system would parse the email and create database entries using the email subject, body and any attached images. My proposed approach is to create a windows service that pings a pop3/imap enabled email provider to retrieve incoming emails. The service would then parse the emails using an existing library I found here http://www.lesnikowski.com/mail/. The user would be matched according to the email address in the from field to the asp.net membership and then new records would be inserted from the contents of the email for that user. Initially the windows service would run on a separate EC2 instance that I’ll set up for this purpose since the current host does not permit root access. But eventually I’ll probably migrate the entire site to EC2.

Before I dive in I wanted to get some feedback from you all on my overall approach and architecture. More specifically:

  • Is what I described above the approach you would take?
  • Would you recommend implementing a web service to manage the interactions between the windows service and the database of the asp.net site? Or would you recommend hitting the database directly?
  • If I program the windows service to
    ping the email provider every 30
    seconds, will that be a problem?
  • Do you foresee any security issues with this approach I’ve outlined?
  • What about issues with reliability (needs to be a 24×7 service)?

Additional Background — the asp.net website is an inventory system where each entry has a name, description and optional images. From the email the subject will become the name, the body will become the description and the images are the images. If you’re familiar with the Posterous blogging platform you’ll have an excellent reference point for what I am trying to accomplish.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:03:59+00:00Added an answer on May 23, 2026 at 3:03 am

    Is what I described above the approach you would take?

    It would be better if you could set up an Exchange server or sth similiar where you get notifications about new emails, so you don’t have to ping every 30 minutes, but I never did it this way and cannot tell you if this is even possible.
    The approach itself sounds plausible, because sending emails is really easy and everybody knows how to do that.

    Would you recommend implementing a web service to manage the interactions
    between the windows service and the
    database of the asp.net site? Or would
    you recommend hitting the database
    directly?

    I would recommend an extra abstraction layer, because it is not much effort and improves the design. This decreases performance (shouldn’t be that much), so it depends on your requirements.

    If I program the windows service to ping the email provider every 30
    seconds, will that be a problem?

    Depends on your email provider. Normally and if they allow it: No. You should definetly ask them first.
    If it’s your own: You’re good to go.
    There can be problems however if you’re doing this inside a thread and you’re accessing the IMAP multiple times at the same time. You should try to avoid that.

    Do you foresee any security issues with this approach I’ve outlined?

    Yes. You can easily forge the “from” field of an email you’ve send. There can be issues then, if the email is known. You should definetly add some kind of extra security like sending the mail to <SaltedHashThatIsDifferentForEachUser>@example.com. (Facebook does this too for example)

    What about issues with reliability (needs to be a 24×7 service)?

    I see more problems with the reliability of your email provider than with your service, because as long as the emails are saved, you can still parse them later.
    You should investigate the maximum size of your imap to avoid rejected mails (e.g. delete them once you’ve successfully parsed them)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing ASP.NET website which I would like to painlessly add CMS
I have an existing ASP.Net Application, into which I am attempting to introduce MVC2.
I have an existing ASP.NET application that implements Forms Authentication site-wide. The application is
We have an existing certificate issuing application (C#, ASP.NET, JavaScript) that issues certificates to
I have an ASP.NET application with existing business classes and a database schema. (which
I have an existing asp.net webforms project that uses Microsoft's Enterprise DAAB for the
I have an existing ASP.NET MVC application with some sample data in the SQL
We have a running asp.net application which is accessed by various offices of the
First some brief background: I have an existing ASP.NET MVC 1 application using Entity
I have one asp.net application, in which i have one text box for entering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.