On Wed, 11 Jun 2003, Adrian Teasdale wrote: >-Hi there >- >-We are wanting to create a little help/crm tool for internal use. Rather >-than reading (and parsing) in an email from a pop account, is it now >-possible to pipe email in directly to a database via PHP? If so, any >-pointers on how to do it and anything to watch out for?
You might get good clues by examining the phorummail.php file in the Phorum.org forum script in their scripts directory of their tarball. http://www.phorum.org/ As I recall, it is meant to be passed email messages via .forward or something like that. It then looks at the mail contents and deals with it accordingly. Phorum is a MySQL thing so I assume they write the data to the database. Note that this file is meant to run like a typical shell script with this in the first line: #!/usr/local/bin/php -q Thus, you must have a compiled php executable in /usr/local/bin or whereever you keep your favorite programs. Just compile PHP with no parameters in ./configure and it should make a php binary perfect for use as a shell program tool. The "-q" turns off header generation I think making php a very suitable progamming language. Good luck. >- >-Thanks in advance >- >-Ade >- >- >--- >-PHP General Mailing List (http://www.php.net/) >-To unsubscribe, visit: http://www.php.net/unsub.php >- ************************************** John Huggins [EMAIL PROTECTED] http://www.phphosts.com/ ************************************** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php