Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 23-08-2002, 04:16 PM
joyce's Avatar
Novice Webmaster
 
Join Date: Nov 2001
Location: Malaysia
Posts: 23
Rep Power: 0
joyce is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 24-08-2002, 10:46 AM
MHR's Avatar
MHR MHR is offline
Senior Webmaster
 
Join Date: Sep 2001
Location: epox
Posts: 435
Rep Power: 93
MHR is on a distinguished road
Send a message via ICQ to MHR Send a message via Yahoo to MHR
header dia ade bagitau tak yang email tu contains HTML?
__________________
Munzir + "/^[Hh](a)(z)\1\2[iI]$/"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 26-08-2002, 03:03 AM
zaimlah's Avatar
Inspired Webmaster
 
Join Date: Jul 2001
Location: ttdi
Posts: 129
Rep Power: 89
zaimlah is on a distinguished road
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.
__________________
blog:zaim_bakar_blog | biz:box
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 30-08-2002, 11:01 AM
Novice Webmaster
 
Join Date: Aug 2001
Posts: 15
Rep Power: 0
saupz is on a distinguished road
Send a message via Yahoo to saupz
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 30-08-2002, 01:23 PM
MHR's Avatar
MHR MHR is offline
Senior Webmaster
 
Join Date: Sep 2001
Location: epox
Posts: 435
Rep Power: 93
MHR is on a distinguished road
Send a message via ICQ to MHR Send a message via Yahoo to MHR
erm... aku guna ok aje.
__________________
Munzir + "/^[Hh](a)(z)\1\2[iI]$/"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 30-08-2002, 02:09 PM
Novice Webmaster
 
Join Date: Aug 2001
Posts: 15
Rep Power: 0
saupz is on a distinguished road
Send a message via Yahoo to saupz
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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 22-09-2002, 03:27 AM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 768
Rep Power: 98
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 22-09-2002, 03:00 PM
Novice Webmaster
 
Join Date: Aug 2001
Posts: 15
Rep Power: 0
saupz is on a distinguished road
Send a message via Yahoo to saupz
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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 23-09-2002, 04:36 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 768
Rep Power: 98
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
E-Mail Backup, Email Defense, E-Mail Marketing! Get one for your website! starsearcher Web Hosting Offers 0 16-01-2006 12:03 PM
html page in mail...(aku X tau camna nak ckp)..sile chek thread nie jap Syazwan Website Programming 16 21-08-2004 10:24 AM
nak display xml gune html bleh ke? bloodymary Website Design 9 24-11-2003 02:42 PM
Display contents mysticmind Website Design 3 04-05-2003 08:55 PM
picture codes sunshinerocke Website Design 12 04-05-2003 11:05 AM



All times are GMT +8. The time now is 08:52 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59