?
Solved

Trigger ASP script from received Email

Posted on 2011-09-26
6
Medium Priority
?
440 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

864 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