Solved

php script to handle automated email reply from application.

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
php string detection problem 7 34
mysqli insert query problems 4 22
error log using ftp 7 41
does post require a form or curl to be post 4 32
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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.
The viewer will learn how to count occurrences of each item in an array.
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 …

773 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