SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML tags showed up in email message

    Guys: I wrote a mail script in PHP to allow users to compose email messages. I highlighted some text with HTML, for example, I did:

    <strong>Subject: </strong>

    But when users received an email from the system, they did not see

    Subject:

    Instead, they saw raw HTML tags

    <strong>Subject: </strong>

    The HTML tags were still there and did not really apply to the text.

    I'm wondering if I missed anything in the headers or MINE type or something. Any idea ? Thanks.

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,197
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Have a read of the following article by Chris Coyier http://css-tricks.com/sending-nice-html-email-with-php/

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Chris.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •