PHP Newsletter

Discussion in 'PHP' started by Andres, Aug 10, 2006.

  1. #1
    Hi all

    I have developed a php newsletter editor on PHP for my client , everything is ok since I need to send the newsletter to the unclosed reciepients.
    I want to send the newsletter created dynamicly with PHP and MySQL. The problem is that I need elaborate the message with the newsletter inside (CSS, photograps, etc), because the archive that contains the Newsletter have some loops and query to the data base. One time the Newsletter is sended and recived I can only visualize the HTML part but it is not readed the PHP which was inside.

    It is something I'm doing wrong but I'm bloked!
    Anyone can help me with that?
    What is the process for visualize this kind of newsletters?


    Thanks all
     
    Andres, Aug 10, 2006 IP
  2. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Email clients cannot run PHP, which is a server side language. Your email message needs to be fully constructed before it is sent.

    If you want the email to contain dynamic content then have people visit your webpage instead.

    Not all people view email as anything other than plain text because of security and privacy concerns.
     
    clancey, Aug 10, 2006 IP