You have chosen to sponsor your bid up to a maximum amount of .
I need someone to make a PHP script that monitors a google apps email account and forwards every email with an PDF or TIFF attachment to an email. The forwarded email needs a different subject, what subject to use is decided by where the email/attachment was originally sent to.
How the script should work:
1. Our suppliers send invoices to a given email ex. invoice[at]company1.com
2. Emails sent to invoice[at]company1.com, invoice[at]company2.com and invoice[at]company3.com (etc) will all be forwarded to invoicebox[at]mydomain.com (this is the invoice box)
3. Based on the original sent-to email we know what subject to use when the PHP script forward the attachment.
4. When the attachment is forwarded, mark the email as unread and move to a folder named ”completed”.
The script needs two types of configuration, the first is static and can be defined in the top of the PHP file, this config is:
Forward attachment to what email
A default email for error reports
A list of valid attachments (PDF, TIFF).
Log in details to the invoice box (Google Apps Email / Gmail)
The forward configuration should be a .txt file, separate fields with ; and each line is a new company, example:
If the email is sent directly to the invoice box , to an email that is not listed in the config file or the emails monitored does not have an attachment, notify the default email (error report).
If you have read the whole description, please start your bid comment with GA.
I need you to develop the script from section 3 and I want to forward the emails through Google Apps Email (NOT with the PHP mail() function), this because I want to track forwarded emails through the email account (invoice box).
The script has to be light weight and efficient. I’ll run the script with cronjob.
Please give examples if you have done similar work earlier.