Forums

PHP

This topic is locked

PHP Newsletter Mail Extension from Tim Green

Posted 15 May 2002 19:02:29
1
has voted
15 May 2002 19:02:29 Pat Heuber posted:
Hi there,

i wrote a tiny cms with UD4 and PHP including Tim Greens PHP Newsletter E-Mail Extension.
What I do is basicly this. I have a list of all the authors articles in which the author can select an article so this moves to the detail page where the article shows up itself.
Then the content of the Headline Field and the main Article are copied to an invisible form field which is mainly the part to be send by email to the adress list.

Everything works perfect. But there is an image to each article stored as a filename in the mysql database. The image itself is stored in a separate path on the server. On the detail page everything is shown right. The email works for the textfields also.

But, how can I get at least one image put in the email as well ??? HTML Mail is set "on".
I put the contents of mail hidden form field below. What Information for the serverpath do might have to add instead of the relative path. Is there any way to do this anyway ???
Hopefully !!! I tried to use a physical link to an image for testing, that didn't work either, why ???

The content of the hidden form field:
php echo $rsWebmasterContent->Fields("Headline"
br
img src="../../uploadimages/php echo $rsWebmasterContent->Fields("BildURL"" width="240" align="left">
br
php echo $rsWebmasterContent->Fields("Haupttext"


Replies

Replied 16 May 2002 18:43:51
16 May 2002 18:43:51 Paul Lacey replied:
Hi,

not sure if it will work, but have you tried putting the full URL of the Image into the IMG SRC tag?

E.g.

img src www.thedomain.com/uploadimages/php echo $rsWebmasterContent->Fields("BildURL"" width="240" align="left">
Replied 27 May 2002 10:10:02
27 May 2002 10:10:02 Pat Heuber replied:
after days, I finally worked it out. I rewrote the code myself following several mail tutorials. It was working, but the same problem occured. The problem was, that you use html code within a "textarea field". Obviously you have to leave out the qoutes within the commands. Definitely you have to use the full url path as well. Now I have a very nice Newsletter with images working perfectly. Thanks

Reply to this topic