Re: Embed images in emails

From: Date: Fri, 30 May 2008 06:32:14 +0000
Subject: Re: Embed images in emails
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-274867@lists.php.net to get a copy of this message
Iñigo Medina García wrote: > Hi Bastien, > > thanks for the tip. I've already done it and it didn't run. > But I'll check it again. > > iñigo > >> On Thu, May 29, 2008 at 6:11 AM, Iñigo Medina García < >> imedina@diazdesantos.es> wrote: >> >>> Hi, >>> >>> I'm trying to send emails with embed and dynamic images: a normal tell a >>> friend feature which sends the email with item's data: author, title, >>> image-cover, etc. >>> >>> Ideas PEAR and mime classes apart? >>> >>> thanks >>> >>> iñigo >>> >>> -- >>> -------- >>> Iñigo Medina García >>> Librería Díaz de Santos >>> Madrid (Spain) >>> Dpt.Desarrollo >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> You'll need to create a HTML email, and then embed the image with the <img> >> tag, using the entire path to the image as the source attribute >> >> <img >> src='http://www.mysite.com/images/thisimage.jpg'> >> >> You may want to look at some email that you get that have images in them and >> just view the source. Using an img src doesn't "embed" the image, it's fetched on the fly from the url (if you allow remote images to be displayed). Use something like phpmailer which can embed the images in the content for you (saves the headaches of working it all out yourself). http://phpmailer.codeworxtech.com/tutorial.html#4 -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#274867) next »