Hi All,
I'm in the process of writing a script that allows me to send html email to my astronomy friends. These html emails contain images and such. Although I could send them as attachments the presentation would look better if they were in-line because:
Those of my friends who read their email on line mostly don't have a problem because the html exists on my server and images are referenced with an absolute URL. However,
Some either use email programs like pegasus that won't necessarily show the images because of security issues or download their email and then read them offline. Either way they get the empty boxes being displayed.
I have sent them emails with inline images and so far all of them have had no problem viewing the email as it was intended either on or off line.
The problem is that once I have finished this script I want to pass it amongst us so I want the script to be as easy as possible to use which basically means:
They would upload the HTML and images to their server maintaining the directory structure and using absolute references but then using the script, type in the URL retrieve the contents and then send it to the members in their database.
80% of the script is done but I can not work out how to retrieve the images and store them in a temporary directory until the everything, headers, html, as been compiled into email format.
If anyone knows of a php code snippet to do this or would like to offer their advice I would really appreciate it
Nigel