Reading email from sendmail

This is a discussion on Reading email from sendmail within the PHP General forums, part of the PHP Programming Forums category; Good afternoon, all!! Is there a function or series of functions in PHP that will allow a PHP package to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-08-2003
Robin Kopetzky
 
Posts: n/a
Default Reading email from sendmail

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
Reply With Quote
  #2 (permalink)  
Old 12-08-2003
Justin Patrin
 
Posts: n/a
Default Re: Reading email from sendmail

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>
Reply With Quote
  #3 (permalink)  
Old 12-08-2003
Justin French
 
Posts: n/a
Default Re: [PHP] Reading email from sendmail

On Tuesday, December 9, 2003, at 08:58 AM, 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.
>


http://au2.php.net/imap

Might be a good starting point.


Justin French
Reply With Quote
  #4 (permalink)  
Old 12-08-2003
Manuel Lemos
 
Posts: n/a
Default Re: Reading email from sendmail

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/
Reply With Quote
  #5 (permalink)  
Old 12-10-2003
David Robley
 
Posts: n/a
Default Re: Reading email from sendmail

In article <HCEBLNDFHDPOOELMIHOMIEFLCNAA.sparkyk@blackmesa-isp.net>,
sparkyk@blackmesa-isp.net 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?
Reply With Quote
Reply


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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:30 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0