bthompson00 Posted March 20, 2009 Share Posted March 20, 2009 Hi, I'm not really sure about this one... I'd like to be able to send an email to a script of some sort, preferably php which can then run its course... I'm asking because I'm a freelance web developer, and I have a php script which sorts out my work roster for me and uploads it automatically to google calendar. The problem is that at work (health industry) I don't have access to the internet, but I do have email. So if I can email my roster to either a php script or something like that then it could still work... is anything like that possible? Or can i email it to a special email address and have a script automatically analyze my incoming emails? any ideas? point me in the right direction! thanks! Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/ Share on other sites More sharing options...
trq Posted March 20, 2009 Share Posted March 20, 2009 Or can i email it to a special email address and have a script automatically analyze my incoming emails? You could write a script that can check your mailbox via imap. You could have the script check the subject for a keyword or something. You'll then need to run this script via cron every ten minutes or whatever to make sure it checks your email regularly. Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789190 Share on other sites More sharing options...
Daniel0 Posted March 20, 2009 Share Posted March 20, 2009 You can also pipe the mail from the mail server to a script. This will be push instead of pull, so it'll be more efficient periodically polling the mail server and it'll occur in real time. Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789207 Share on other sites More sharing options...
bthompson00 Posted March 20, 2009 Author Share Posted March 20, 2009 Thanks guys, they both sound good! I'm particularly keen on Daniel0's idea...but how do you actually do that? (It not my server that I'm sending from, but it is my server that I'm sending to) Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789211 Share on other sites More sharing options...
Daniel0 Posted March 20, 2009 Share Posted March 20, 2009 I'm particularly keen on Daniel0's idea...but how do you actually do that? You can only do that if you have direct access to the server. Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789241 Share on other sites More sharing options...
bthompson00 Posted March 20, 2009 Author Share Posted March 20, 2009 The sending server? Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789243 Share on other sites More sharing options...
Daniel0 Posted March 20, 2009 Share Posted March 20, 2009 The receiving MTA. Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789244 Share on other sites More sharing options...
bthompson00 Posted March 20, 2009 Author Share Posted March 20, 2009 Sorry, I'm a bit confused. Whats an MTA? So if I have access to the incoming mail server, but not the outgoing, can I do what you are suggesting? Thanks again Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789277 Share on other sites More sharing options...
Daniel0 Posted March 20, 2009 Share Posted March 20, 2009 Sorry, I'm a bit confused. Whats an MTA? Sorry, MTA = Mail Transfer Agent. It's the mail server. Could be e.g. sendmail, postfix or qmail. So if I have access to the incoming mail server, but not the outgoing, can I do what you are suggesting? Yes. Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789293 Share on other sites More sharing options...
bthompson00 Posted March 20, 2009 Author Share Posted March 20, 2009 oh great! thanks! how exactly? Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789309 Share on other sites More sharing options...
trq Posted March 20, 2009 Share Posted March 20, 2009 Sorry, I just assumed you where using someone elses mail server. What MTA are you using? Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789904 Share on other sites More sharing options...
bthompson00 Posted March 21, 2009 Author Share Posted March 21, 2009 I'm actually not sure what I'm using, I have a domain with Jumba. How do I find out? Do you have any pointers where I can start finding out about this script? Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-789985 Share on other sites More sharing options...
bthompson00 Posted March 21, 2009 Author Share Posted March 21, 2009 I've just found this tutorial: http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/index.html Brilliant! I haven't looked at it yet, but just reading the requirements: * PHP compiled as a CGI binary, not just as an Apache module; * a local mail system or MTA, (are you using Sendmail, Exim, Qmail or some other system); * shell access to your server, whether or not you have to be root depends on your mail system. I'm not sure whether my server is setup like this. Is there a way I can check these requirements? Thanks very much! Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-790530 Share on other sites More sharing options...
trq Posted March 21, 2009 Share Posted March 21, 2009 Is there a way I can check these requirements? Yes, check with your host to see that you hae shell access first. Quote Link to comment https://forums.phpfreaks.com/topic/150268-email-to-phpurlscript/#findComment-790532 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.