Go Back   kirupaForum > Development > Server-Side (PHP, SQL, ASP.NET, etc.)

Reply
 
Thread Tools Display Modes
Old 02-09-2010, 02:00 AM   #1
denny8569
Registered User
Using the PHP imap() function

Ok here's what I want to do.. I want to write a script that will automatically catch all emails and auto-respond based on what is in the content of the email... For example I know how to create auto-responders but they send the same email everytime.. I want a script that first off checks the email account (imap()) and then responds based on the user email... eventually I would like to turn my server into a text sending server sending texts to cellphones (I can do that already) but I want it so users can send in a question from their phone and the server will answer them back correctly.

Any thoughts on how to go about doing this?

__________________
Aal iz well !!!
denny8569 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?

Old 02-09-2010, 11:46 AM   #2
actionAction
humanBeing._beard=true;
 
actionAction's Avatar
You are halfway there, use cron jobs to run the script at a given interval. I would suggest using the PEAR IMAP class (http://pear.php.net/package/Mail_IMAP/download/All) to parse the messages as it provides a thorough and object-oriented means of accessing mailboxes.

__________________
there are two types of people in the world - those who understand recursion and there is one type of person in the world
actionAction is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:35 PM.

SHARE:

SUPPORTERS:

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com