Re: Embed images in emails
| From: | Iñigo Medina García | Date: | Fri, 30 May 2008 06:32:57 +0000 |
| Subject: | Re: Embed images in emails | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274870@lists.php.net to get a copy of this message | ||
Hi Chris,
yep, phpmailer is a good work too. But it works the same i said about
htmlMimeMail5.
iñigo
> 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
>
--
--------
Iñigo Medina García
Librería Díaz de Santos
Madrid (Spain)
Dpt.Desarrollo