phpmailer script help

IN PROGRESS
Bids
4
Avg Bid (USD)
$10 / hr
Project Budget (USD)
$2 - $8 / hr

Project Description:
Hi,

Ive made a script using phpmailer, that selects a random image from a directory called /image.

It hen attaches that image to an email, sets the body message and sends it to a tumblr email address. (to be posted as a blog post)

What im trying to do is send the emails to tumblr - using their feature http://www.tumblr.com/docs/en/email_publishing#photo

So far ive got the script working and sending to my email address fine, but when i send it to tumblr it seem to work.. im not sure what the problem is i think it might be to do with the content type, but im not sure..

Thats the part i need help with.

The only other part is i wanted to set an conditional that if the image is sent successfully in the email i want to delete it from the /images directory so that it wont be sent again.

Ive attached the script im using so far.

For this project you will need to setup a test email account (running on gmail as mine will be) and using this email setup a test tumblr account, to test the code. The email address used for both the gmail and tumblr account must be the same..

regards
sam

Hours of work: 1 hour / week Project Duration: 1 - 4 weeks Skills required:
PHP, Software Architecture
Additional Files: files.zip
Hire pudle
Project posted by:
pudle United Kingdom
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.