PHPBuilder - Creating a PHP Script for Web Mail Posting and Notification Page 4



RSS Twitter
Articles Php Functions

Creating a PHP Script for Web Mail Posting and Notification - Page 4

by: Jochen Staerk
|
May 17, 2004

Unfortunately the script was a little slow for our use: On a Loop-Back-Ethernet of a somewhat unused Apache 2 with 512 MB Ram and 2.5 Ghz, a process took approximately 15 seconds. Appearantly it wasn't the submitting that was slow, but rather it was waiting for the response for that long. However, if you are ignoring the answer of the HTTP server the script ran in less than 0.01 seconds:

<?php
if (!$discard_return)
{
    while (!
feof($fp))  $res.= fgets($fp1024);
}
?>

SETUP OF THE RECEIVER ACCOUNT
The script can be used in .forward files, simply write:
|"postinput.php http://yourdomain.com/yourscript.php"
in the .forward-Datei in the home-directory of the user, which mail you wish to receive. Your email will literally post this: (to http://yourdomain.com/yourscript.php).
Your .forward does not have to stop here however:
|"postinput.php http://yourdomain.com/yourscript.php"
|"postinput.php http://mydomain.com/yourscript.php"
\jstaerk
scipio.africanus@rome.spqr
sends an incoming mail to yourdomain and mydomain, puts a copy in the mailbox of the user jstaerk and forwards one copy to Scipio Africanus.

« Previous Page
1
|
2
|
3
|
4
|
5
Next Page »

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Jochen Staerk

Comment:



Comment:

(Maximum characters: 1200). You have characters left.