Solved

php script to handle automated email reply from application.

Posted on 2008-10-23
6
404 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
  • 3
  • 2
6 Comments
 
LVL 9

Expert Comment

by:mgonullu
Comment Utility
0
 

Author Comment

by:Shiva_Kumar
Comment Utility
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
Comment Utility
First determine if the emails will be got using POP or IMAP? then we can continue ok?
0
 

Author Comment

by:Shiva_Kumar
Comment Utility
Its going to be POP
0
 
LVL 9

Accepted Solution

by:
mgonullu earned 500 total points
Comment Utility
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

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

743 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

11 Experts available now in Live!

Get 1:1 Help Now