I want to send html email using the above script but it didn’t send the image encoded in the html file. Is there a way to do this?
umm… what “above script”…?
I think this is the script the poster is referring to.
If the image did not show up in the email then 1 of a few things went wrong.
a) the html did not refer to the location of the image correctly.
b) the image is not available to the end user (not on the internet or a shared network)
c) the end user doesn’t have their mail client configured to view HTML email.
The URL of the image in the HTML code cannot be relative - in other words it cannot be simply, (images/myimage.gif). It has to be available to the user and defined in the html using the full URL (http://someserver.com/images/myimage.gif)
Here is an image I have sitting on some free space provided by my ISP:
I can include it in an emailed report to people off of my company’s network because it is stored out on the intermess, where people have access to it. The HTML used in the email is basic HTML
<img src="http://home.attbi.com/~jlaustad/Illustrator_EPS.gif">
Hope this helps. If you are still having problems post what is happening - what the recipient is seeing when the get the email. If it is a box with a red x thru it then the email is received as HTML fine but either the URL is wrong, or the file is unavailable.
Good luck!