Solved

php script to handle automated email reply from application.

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

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…
This article discusses how to create an extensible mechanism for linked drop downs.
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 …

828 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