i'm having a problem with this:
i want to use a php script that reads a list of email addresses from a database (this part is working fine)
then i want make a loop that will:
1. read in each email ($user[email]) from the database.
(this is working too)
- construct an html email from an external html file in such a way that the $user[email] can be passed to the end of a link in the newly constructed html file like this:
<a href="http://mysite.com/somefile.html?email= $user[email] ">
everything works just fine with one exception. the link comes out literally as above. the variable doesn't show up. the link in the html email comes up as:
<a href="http://mysite.com/somefile.html?email= $user[email] ">
and $user[email] should actually be the email address of the recipient.
i'm using the richard heyes htmlMimeMail class to construct the html email.
i've tried various different syntax things such as:
somefile.html?email= <? print '$user[email]';?>">
and many many other variations on that theme.
is it possible to do this? any help would be greatly appreciated.
thanks, dave 😕 😕 😕