Since the attachment is along with the Email and save into db, so I think i can't do fopen/fred here.
What I looking here is, how can i display the .eml file, exactly like how outlook work, show the image, original format, in web based enviroment. Any exmaple to decode or show the message??