![]() |
|
#1
|
|||
|
|||
Image from Database to Email AttachmentCurrent Situation:
I am successfully storing images to MySQL, and succesfully retrieving them for display on a page in the following format: <img width="106" height="160" border="0" src="imageserver.php?image_id=44"> where imageserver.php echos the appropriate header and data for the image: ... $result = $db->queryRaw($sql) ; header("Content-type: $type"); echo mysql_result($result, 0); ... Problem: I would like to attach these images to an email. I have successfully attached standard files (in the form 'image_44.jpg'), but when I use 'imageserver.php?image_id=44', I get the following types of errors: Warning: filetype() [function.filetype]: Lstat failed for exampleAn example of the code that fails is: $fileatttype = filetype($fileatt); which works fine when it's a regular file... is there an extra step I'm missing to make data pulled from a database readable as a regular file? |
|||
|
#2
|
||||
|
||||
Re: Image from Database to Email AttachmentI have not tested this solution.
You might want to try putting your HTML code directly into the email. You would need to make imageserver.php available on a public Web server (so that the email recipient has access to imageserver.php) and change the src value to the complete URL of the file. There is no email attachment. Code:
|
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Image onto JFrame | tedds | Java Forum | 8 | 25-Oct-2007 20:04 |
| Bulk Email hosting *** .com Bullet proof hosting | additional2 | Web Hosting Advertisements & Offers | 1 | 20-May-2007 13:55 |
| bulk Email Marketing Bullet proof hosting | additional2 | Web Hosting Advertisements & Offers | 0 | 08-Jul-2006 12:57 |
| Checking source codes of image, audio and video files | onauc | C Programming Language | 5 | 26-Feb-2005 21:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The