Solved

Trigger ASP script from received Email

Posted on 2011-09-26
6
424 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Introduction Ever had certain email messages or responses that you find yourself using over and over again? Do you use Google's Gmail system? If so, then this article is here to help you save time by teaching you how to create email templates from …
Pegasus Mail (http://www.pmail.com/) is a donation ware that is a collaboration of David Harris along with his team members. It is a desktop mail client that offers the option of configuring more than one mail account with single set up. It supports…
The purpose of this video is to demonstrate how to set up a Mailchimp Template which will let the user create a uniform look for all of their campaigns. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mail…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 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