Solved

php script to handle automated email reply from application.

Posted on 2008-10-23
6
412 Views
Last Modified: 2013-12-13
Hello Experts,

Here's my scenario:

I have a php form which sends email to application which inturn replies back with an automated email.  This automated email will include a ticket number.

Now what I want to do is to have the ticket number picked up from the automated email and send another email with the ticket number as the subject line.

Please guide me how this can be achieved.

NOTE: The automated email will be sent to the person whose email address is specified in the php form. I am phpmailer to send email in my form.

Thanks
0
Comment
Question by:Shiva_Kumar
[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 9

Expert Comment

by:mgonullu
ID: 22787758
0
 

Author Comment

by:Shiva_Kumar
ID: 22788629
Hi,

Thank for your response.  the instructions which u gave me is a bit confusing to me.  Could you please elaborate on how to achive this step by step.

Please forgive my ignorance.

Thanks
0
 
LVL 9

Expert Comment

by:mgonullu
ID: 22789503
First determine if the emails will be got using POP or IMAP? then we can continue ok?
0
 

Author Comment

by:Shiva_Kumar
ID: 22790678
Its going to be POP
0
 
LVL 9

Accepted Solution

by:
mgonullu earned 500 total points
ID: 22791129
That is fine let is choose the easiest and the most straight through way.
Your Application will send an email to xyz@xxx.com
So your form should access that inbox and parse the subject witch is the ticket number.
Let us use the PEAR:http://pear.php.net/package/Net_POP3/
Using this tutorial: http://docs.huihoo.com/php/pear/manual/en/package.networking.net-pop3.intro.html 
you can write the function that will read the email subject (Header)

Please let me know if you need more clarifications
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

749 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