Re: HTML-based mail with PHP

From: Date: Sat, 17 Aug 2002 01:24:08 +0000
Subject: Re: HTML-based mail with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113037@lists.php.net to get a copy of this message
Hello, On 08/16/2002 12:54 PM, Liam Gibbs wrote:
I'm having trouble with some HTML-based mail with PHP. It's not the regular thing where I can't get it to use the tags instead of just printing them. That part's fine; it comes out HTML-based. My problem is the way it's not accessing a certain image. I get a broken link instead of an image at the top of my e-mail. I had it print the URL at which it should find the image, and then cut and paste that in my browser, and the image comes up fine. But, as far as putting it in the e-mail, it's not working out.
Unless you put absolute URLs for the image tags, you will need to embed the image files in the message. That is done with multipart/related messages. Here you may find a ready to use PHP component that solves that problem in a half-dozen lines: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos

« previous php.general (#113037) next »