Announcement

Collapse
No announcement yet.

mail () display all html codes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mail () display all html codes

    i'm using the mail() to send mail to customer once they confirmed their orders.

    my problem is, i wnat to display my mails with tables but when i received the email, it display out all the html codes.

    how can i solve the problem?

  • #2
    send the email to an account that allows html in emails?

    only some people do, i presonally dont like the idea of having html in an email because then they could send me to different places using meta tags

    Comment


    • #3
      Don't quote me on this, becuase I'm not sure, but perhaps the mail() function isn't ment to send HTML emails? I have to be honest I've never tried sending HTML emails using mail().

      Another thing may be that you might have to define a particular header in the email in order for the email client to treat it as a HTML email instead of a plain text email.

      Comment


      • #4
        yes you do need the headers

        http://www.snippetlibrary.com/viewht...d=13&siteid=99

        Comment


        • #5
          errr, I thought all you had to do was add Content-type: text/html for the extra headers

          edit: nevermind, i didn't look at scoutt's snippet

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X