Page 1 of 1

Linking together parts?

Posted: Tue Nov 30, 2010 4:56 am
by brad62
I think I'm getting closer to make this work now. But I have on question that I need help with.

I have a html code with tables and stuff and in the middle of the text part, I have a URL linking to a unique page for every person in my db.
So when I get to this part I need to break out of the code and include the php code and then continue with my html, but I just don't know how to do this. Can someone help out?

What I have now is something like this:

Code: Select all

$htmldocument1 = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>WEBMAIL TEST</title>...

...text text text - <a href="http://www.website.com/promo/listen_track.php?promo='; 
Then I need the code to be added:

Code: Select all

$htmldocument2 = $row_rs_table['code']; 
Then the html will continue until the end:

Code: Select all

$htmldocument3 = '"CLICK HERE</a></p>
          <p align="left">The link is...
And after all this I need to get all these three parts together into one. Or is this the wrong way?

Code: Select all

$htmldocument = $htmldocument1.$htmldocument2.$htmldocument3;

Re: Linking together parts?

Posted: Tue Nov 30, 2010 6:42 am
by Weirdan
what does it have to do with SwiftMailer?

Re: Linking together parts?

Posted: Tue Nov 30, 2010 6:51 am
by brad62
Well, when I send this through SwitchMailer it's not working.
I guess I put the parts together in a way that Switch Mailer doesn't like. I think I saw somewhere that Swiftmailer doesn't like when it's put together like I did with:

Code: Select all

$htmldocument = $htmldocument1.$htmldocument2.$htmldocument3;
Or did I just do something wrong in my php code?