Solved

Trigger ASP script from received Email

Posted on 2011-09-26
6
423 Views
Last Modified: 2012-06-27
I'm sure this has been asked and answered many times, but I am not finding the solution, so here it goes.

I have a dedicated email that will receive alert notifications.  Subject 'Field Event', and then the body containing whatever the message is.  may or may not have a closing salutation.

I would like this email to generate a trigger to call an ASP Page and populate a page, or database entry, with the contents of the email sent.  

is this possible, and can someone give me some tips on how to achieve this?  And a note, the email is a gmail account, so I can not get direct access to it.  Thoughs or ideas are GREATLY appreciated.
0
Comment
Question by:mopar003
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:mgfranz
ID: 36711600
Should be simple, how is the email generated?  Is it sent using CDO?  Is it generated via a script?

What I am saying, is that if the email is generated and sent via a script, you can simply call a function after the email is created that does your database or page work.  Psuedocode;

Call email script
    Generate email contents
    Create Object to send email
    Send email
    Close email Object

Call Database script function
    Populate database with contents
    Create page with contents of email
End
0
 
LVL 1

Author Comment

by:mopar003
ID: 36711832
No, the email will be sent by someone else, TO my account.  When that email is received, I want it to trigger a script.
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 36712447
What email client are you using?  Or are you running Exchange?
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 1

Author Comment

by:mopar003
ID: 36712488
Currently the server is just a web hosting server, and the email address that is being sent to is a gmail account.  I can set up Exchange or Outlook Express even to handle the incoming emails.  
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 36712581
Check with your hosting company to see if they put received email messages into a folder before getting picked up by you the client.  If so, you can read the message header to see if the Subject matches to run your script using a number of techniques.  If the hosting service is running Exchange, you could try something like this, http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/e2582e4f-d5ce-49bd-a2e5-9fd0bd412d84/

As far as I know, Gmail does not allow triggers from a client account, they will forward messages though.
0
 
LVL 28

Accepted Solution

by:
sybe earned 500 total points
ID: 36716307
An email itself does nothing. Many people send me emails and until someone (me) actually opens them, nothing happens. It just sits and waits.

You need a machine to read the emails (if you are not going to do it yourself). Write a scripts that uses the gmail API (http://code.google.com/apis/gmail/) to check for new messages.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In this post, we will have a look on how to install Exchange Server 2013 from command prompt, instead of using the graphical user interface. Below are the steps that are to be performed to install Exchange Server 2013. 1. Domain Controller and…
I didn’t use eM Client for long when I decided to swap to Outlook 2016. The reason for the switch is that it started asking for payment to continue some of its services after one month.   The problems I faced when I didn’t pay were:   I was not …
The purpose of this video is to demonstrate how to set up a Mailchimp campaign. This will include styling and adding elements to a newsletter/email. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchim…
This Micro Tutorial demonstrates  how Internet marketers work with competitive analysis data, and a common task in data preparation is creating separate column for domains. You will then extract from a list of URLs.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now