Results 1 to 9 of 9

Thread: mail () display all html codes

  1. #1
    Join Date
    Nov 2001
    Location
    Malaysia
    Posts
    23
    Rep Power
    0

    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. #2
    Join Date
    Sep 2001
    Location
    epox
    Posts
    432
    Rep Power
    230
    header dia ade bagitau tak yang email tu contains HTML?
    Munzir + "/^[Hh](a)(z)\1\2[iI]$/"

  3. #3
    Join Date
    Jul 2001
    Location
    ttdi
    Posts
    130
    Rep Power
    226
    to use html in your mail message, you must add a few additional html header info in mail(), like this:
    Code:
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    
    mail ($to, $subject, $message, $headers);
    of course, the $to, $subject and $message variables have already been set by you, whereby $message is the message body containing html codes.

    hope i helped you here. i got this info from the PHP manual. remember: almost everything is in the manual! so make sure you RTFM (Read The Fine Manual) before asking anything, just a tip, ehehh

    to view the manual online go to http://www.php.net/manual/en
    to download it into your hard disk, choose a download format from here: http://www.php.net/download-docs.php, i suggest you download the Windows HTML Help file, it is easier to navigate.

  4. #4
    Join Date
    Aug 2001
    Posts
    15
    Rep Power
    0
    leh guna ke function mail() tu.. hari tue pernah try sekali guna benda ni.. tak jadi la.. macam ada error.. tue yg confuse tue.. saupz guna exa-bytes punya server.. naper ek.. ada saper yg tau...

  5. #5
    Join Date
    Sep 2001
    Location
    epox
    Posts
    432
    Rep Power
    230
    erm... aku guna ok aje.
    Munzir + "/^[Hh](a)(z)\1\2[iI]$/"

  6. #6
    Join Date
    Aug 2001
    Posts
    15
    Rep Power
    0
    a'ah.. dah ok dah.. ok ok.. thank you la bebanyak... memang dulu tak leh.. aku dah check dah kat forum2 lain.. memang byk org cakap pasal benda ni.. apa2hal. thank you all my friends..

  7. #7
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    haku antow sms kat org pakai mail() tak tiba plak... pakai email biasa tiba... apsal arr? takkan nak complete semua kot? ade sesape leh komen?
    I hate when:

    vBulletin Message:
    Sorry! The administrator has specified that users can only post one message every 60 seconds

  8. #8
    Join Date
    Aug 2001
    Posts
    15
    Rep Power
    0
    dulu aku pernah try gak guna mail() utk hantar sms.. jap kejap.. lepas tue tetiba tak jadi.. sekrang ni aku tak try lagi function tue.. ok ke tidak..

  9. #9
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    untuk celcom aku test lepas lak command nih... maxis kalau pakai nih tak boleh... ampes... ade idea??
    I hate when:

    vBulletin Message:
    Sorry! The administrator has specified that users can only post one message every 60 seconds

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Coupon Codes
    By Brice in forum Web Hosting Offers
    Replies: 1
    Last Post: 26-05-2008, 09:21 AM
  2. Replies: 0
    Last Post: 16-01-2006, 12:03 PM
  3. Replies: 16
    Last Post: 21-08-2004, 10:24 AM
  4. nak display xml gune html bleh ke?
    By bloodymary in forum Website Design
    Replies: 9
    Last Post: 24-11-2003, 02:42 PM
  5. picture codes
    By sunshinerocke in forum Website Design
    Replies: 12
    Last Post: 04-05-2003, 11:05 AM

Posting Permissions

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

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39