php session() and email systems

Discussion in 'PHP' started by l3l00, May 15, 2013.

  1. #1
    okay, so I set up a system of e-mail templates for my CRM that calls each image and css by product id. Now when using an e-mail system such as thunderbird it shows everything just fine!

    However, the css and the images will not display if it is opened through gmail, hotmail, etc. Not one image will display or the css. This because it gathers the info through a $_SESSION.

    Is there a method for having emails know which product id to use. I am thinking of switching out session() with a cookie idea. But would like other opinions.
     
    l3l00, May 15, 2013 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    I'm really confused. Why do you need sessions and/or cookies to link to CSS and images?
     
    nico_swd, May 16, 2013 IP
    deathshadow likes this.
  3. sorindsd

    sorindsd Well-Known Member

    Messages:
    201
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    118
    #3
    Just send the id as a parameter in link and put there a contition if (parameter) use it else use session
     
    sorindsd, Jun 4, 2013 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    I'd say don't send images through e-mail, or CSS for that matter which effectively doesn't exist in mails.

    But then, I use the presence of HTML as one of the ways I filter spam, since there isn't a single legitimate e-mail I'd expect in my inbox that would contain HTML, images, or the rest of that **** except as an attachment.
     
    deathshadow, Jun 4, 2013 IP