[PHP] Re: Reading email from sendmail

2003-12-09 Thread David Robley
In article [EMAIL PROTECTED], 
[EMAIL PROTECTED] says...
 Good afternoon, all!!
 
   Is there a function or series of functions in PHP that will allow a PHP
 package to read email from a sendmail account, look for a specific
 information in the subject line, then be able to resend that email to a
 group of users?? I know mail can be used to send email but reading from
 sendmail???...
 
 Any information is greatly appreciated and profoundly useful.
 
 Robin 'Sparky' Kopetzky
 Black Mesa Computers/Internet Service
 Grants, NM 87020

If the 'sendmail account' can be a dedicated address, you can use 
sendmail's alias to direct any emails to a php script which does what you 
need.

Cheers
-- 
Quod subigo farinam

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Reading email from sendmail

2003-12-08 Thread Justin Patrin
Robin Kopetzky wrote:

Good afternoon, all!!

Is there a function or series of functions in PHP that will allow a PHP
package to read email from a sendmail account, look for a specific
information in the subject line, then be able to resend that email to a
group of users?? I know mail can be used to send email but reading from
sendmail???...
Any information is greatly appreciated and profoundly useful.

Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM 87020
You could use the imap functions to read from an IMAP account quite easily.

--
paperCrane Justin Patrin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Reading email from sendmail

2003-12-08 Thread Manuel Lemos
Hello,

On 12/08/2003 07:58 PM, Robin Kopetzky wrote:
Is there a function or series of functions in PHP that will allow a PHP
package to read email from a sendmail account, look for a specific
information in the subject line, then be able to resend that email to a
group of users?? I know mail can be used to send email but reading from
sendmail???...
You can always try to read the mail box file directly if your Web server 
user has the right permissions. However, the most portable way is to 
connect to your POP3 server to fetch the messages as you need.

In that case you may want to take a look at this POP3 client class:

http://www.phpclasses.org/pop3class

--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php