Re: Need urgent help... Send HTML with jpg/gif page with php

From: Date: Thu, 29 Mar 2001 16:58:56 +0000
Subject: Re: Need urgent help... Send HTML with jpg/gif page with php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46121@lists.php.net to get a copy of this message
Paul Godard wrote: > > Hi, > > I am finalizing a new web site that needs to be live this week-end > and I still have a problem to receive HTML email send from a web page > using implode in php. Help to fix the problem will be VERY much > appreciated... > > Please reply directly to paul@gondwanastudio.com ... thanks > > Here is the php script I use ... very simple > > $mailbody = implode("",file("$Page")); > $mailheaders = "From: ".$FullName." <".$from.">\nMime-Version: > 1.0\nContent-type: text/html\nContent-Transfer-Encoding: 7bit\n"; > mail($to, $subject1, $mailbody, $mailheaders); > > At the bottom of the page > http://www.gondwanastudio.com/Expedition/AvantPremiere.html, > there is > a small form to send a resume of the page to an email address. > > The > http://www.gondwanastudio.com/Expedition/Episodes/Page_001.html > which is imploded and sent is received ok but the link to the > pictures are dead... > > Why and how to fix it? > > My optimal wish is to receive the email with embeded pictures, not > lived links to the website pictures. How can I modify the code of > the page to work? > > If this is too difficult, is it possible to have AT LEAST the live links? > > Thanks in advance... > -- > > Kind regards, Paul. > > Gondwana > Info@gondwanastudio.com > http://www.gondwanastudio.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net You use relative links to your images. It's not so weird that someone who receives the page will not get the images with it. If you want the images to be seen by the rcpt, you should use absolute links to them. Usualy you wouldn't want to do that, I agree, but when sending pages all over the world, there's pretty much no other way. So e.g. the first image will be: <IMG src="http://www.gondwanastudio.com/Expedition/Episodes/xMedia/Logo/MiniLogo_BushWeb.gif" width=" ... etc. That way, the rcpts will be able to see the images. -- * R&zE:

« previous php.general (#46121) next »