Solved

php script to handle automated email reply from application.

Posted on 2008-10-23
6
413 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
 

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

695 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