Index
Downloads
Manual
Tutorials
IMAP specification
Links
Forum


E-mail: ernest[nosp@m]moldo.pl
Tutorials

You can download example file from here
How to run php Email To DB from shell
#!/bin/sh
echo "E-mail tp DB"
echo "Proces $$"
p=100;
x=1;
while [ $x -le $p ]; do

sleep 5

echo "Loop: $x"

php /var/www/html/imap/email.monitor.cron.php

if [ $x = $p ] ; then

./emailtodb

else

echo "N"

fi

x=$[x + 1]

done
File: email.monitor.cron.php
include_once("class.emailtodb.php");

$edb = new EMAIL_TO_DB();
$edb->connect('my.server.com', '/pop3:110/notls', 'login', 'pass');
$edb->do_action();
statystyki www stat.pl Index | Downloads | Manual | Tutorials | IMAP specification | Links | Forum |