Re: putting variables in a variable

From: Date: Fri, 28 Mar 2008 14:51:42 +0000
Subject: Re: putting variables in a variable
Groups: php.general 
Request: Send a blank email to php-general+get-272226@lists.php.net to get a copy of this message
---- Hulf <ross@blue-fly.co.uk> wrote: > Hi, > > I am making and HTML email. I have 3 images to put in. Currently I have > > $body .=" > <table> > <tr> > <td><img src=\"image1.jpg\"></td> > </tr> > > <tr> > <td></td> > </tr> > </table> > "; > > > ideally I would like to have > > $myimage1 = "image1.jpg"; > $myimage2 = "image2.jpg"; > $myimage3 = "image3.jpg"; > > > and put them into the HTML body variable. I have tried escaping them in > every way i can think of, dots and slashes and the rest. Any ideas? > > > Ross First, you need to change the date on your mail server, since it is reporting the year to be 2011, which in most cases and most servers I run automagically sets you as a spammer and reports the email and domain to the authorities and blacklists you. Secondly, if you want to use a variable, you need to make sure you are doing the $image1.jpg inside the body, because according to the snippet of code you have done, the $ is missing. HTH, Wolf

« previous php.general (#272226) next »