php script to handle automated email reply from application.

Posted on 2008-10-23
Medium Priority
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.

Question by:Shiva_Kumar
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

Author Comment

ID: 22788629

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.


Expert Comment

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

Author Comment

ID: 22790678
Its going to be POP

Accepted Solution

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

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

770 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