1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

php mail() help

Discussion in 'PHP' started by kalius, Aug 4, 2005.

  1. #1
    I want to send some emails with php mail function, the email contains html tags, I want the tags to show as part of the text on the email clients and not interpreted by th eemail client.

    Can anyone tell me how to do this?
    SEMrush
    Thanks
     
    kalius, Aug 4, 2005 IP
    SEMrush
  2. johnt

    johnt Peon

    Messages:
    178
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just send a normal HTML email and enclose the tags that you want to be displayed as tags in <pre> .... </pre>
     
    johnt, Aug 4, 2005 IP
  3. kalius

    kalius Peon

    Messages:
    599
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, And here I was banging my head trying to figure it out. :mad:
     
    kalius, Aug 4, 2005 IP
  4. mck9235

    mck9235 Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well, you shouldn't even have to do that, as PHP only sends text based mail unless you tell it to send HTML mail with additional MIME types.
     
    mck9235, Aug 5, 2005 IP
  5. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Some email clients will interpret the HTML even with out the correct MIMe type.

    YOu could also use php´s htmlspecialchars() to make the HTML visible. :)
     
    exam, Aug 6, 2005 IP