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 [url removed, login to view]
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..