MailTwitterPHP
MailTwitterPHP is an email to Twitter gateway script. MailTwitterPHP will make an attempt to connect to a specified IMAP inbox, cycle through all email and attempt to post the body of each email as a new Twitter to a specified Twitter account. A small security feature in MailTwitterPHP only allows email with the correct subject line to be posted to Twitter. POP3 is currently unsupported, however support will be added in a future release.
MailTwitterPHP is designed to run as a shell script. The ideal method would be to create a cron job that calls MailTwitterPHP every 5 minutes, or whatever timeframe deemed necessary, so that it can poll the specified IMAP inbox and perform the job it was designed for. The following is an example of a cron job that runs MailTwitterPHP every 5 minutes:
*/5 * * * * /bin/php -q /home/jarkolicious/scripts/twitter-email.php > /dev/null
It is recommended that a mailbox be created for the sole purpose of MailTwitterPHP, as the script is designed to delete email without prejudice.
PHP must have IMAP support compiled in otherwise MailTwitterPHP will not function, as it relies on the IMAP library in order to function. If you are unable to use MailTwitterPHP due to the lack of IMAP support then please contact your ISP, or compile PHP with IMAP support on your own
- License: Creative Commons Attribution-NonCommercial-ShareAlike 2.5
- Latest release: v0.1b
- Download: MailTwitterPHP v0.1b
