Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 15th, 2008, 03:01 AM
Registered User
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Embed image into email

I have been using php to send html emails recently and using linked images instde them. I have one occurance where I need to actually embed an image inside the email (not an attachment...it needs to show on the page) instead of using the linked images. I cannot find anything simple enough to answer my question on the internet so far. Everything out there is either an incomplete code snippet or a huge mime class. I simply need the most extremely simple example of entire php code (start to finish with no include files such as the mime classes that are floating around out there)for completing this task. If anyone can help that would be great.

Old October 16th, 2008, 03:48 AM
Friend of Wrox
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran

you can upload the images into server, and send the html code as a mail with html/text header file.
you should give the full url of the image http://www.yourdomain.com/images/sample.jpg

(Anything is Possible)
Old December 17th, 2008, 07:37 PM
Registered User
Join Date: Dec 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Complete Source for "Embed image into email"

Link to source:

Similar Threads
Thread Thread Starter Forum Replies Last Post
embed image in php html email cullancrothers PHP How-To 12 September 16th, 2005 08:09 AM
Embed Image in HTML Email cullancrothers Pro PHP 4 June 22nd, 2005 01:40 PM
embed images in email using system.net.mail Looney Classic ASP Basics 1 June 7th, 2005 05:11 PM
Embed report into email message. liliarum BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 8th, 2004 01:27 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.