Solved

Trigger ASP script from received Email

Posted on 2011-09-26
6
428 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
The purpose of this video is to demonstrate how to set up Lists in Mailchimp. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchimp account. : Click on Lists. Click on Create List Button : Choose the desi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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