![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I have the php code as following: $mailSubject = "Promotion"; $mailHeaders = "From: Wukong\r\n"; $mailHeaders .= "MIME-Version: 1.0 "; $mailHeaders .= "Content-type: text/html; charset=big5"; $mailBody.= "<HTML>"; $mailBody.= "<BODY>"; $mailBody.= "<div align=center>ABC<br></div>"; $mailBody.= "</BODY>"; $mailBody.= "</HTML>"; $mailTo = "emailaddress"; mail($mailTo,$mailSubject,$mailBody,$mailHeaders); But once I got the email as the following: X-Qmail-Scanner-Message-ID: <106173414452627613@moon> <HTML><BODY><div align=center>ABC<br></div></BODY></HTML> If anyone can help me how come the HTML format is corrupt?? Thanks Bonnie | |||
|
| Advertisements |
| | #2 | ||
| "Bonnie Chan" <chanty12@so-net.com.hk> schreef in bericht news:3f48cca6$1@shknews01... > I have the php code as following: > > $mailSubject = "Promotion"; > $mailHeaders = "From: Wukong\r\n"; > $mailHeaders .= "MIME-Version: 1.0 "; > $mailHeaders .= "Content-type: text/html; charset=big5"; .... > > But once I got the email as the following: > > X-Qmail-Scanner-Message-ID: <106173414452627613@moon> > > > <HTML><BODY><div align=center>ABC<br></div></BODY></HTML> > You are forgetting \r\n to finish up the mime-version header: $mailHeaders = "From: Wukong\r\n"; $mailHeaders .= "MIME-Version: 1.0\r\n"; $mailHeaders .= "Content-type: text/html; charset=big5"; JW | |||
|
| | #3 | ||
| "Janwillem Borleffs" <jwb@jwbfoto.demon.nl> schreef in bericht news:3f490b55$0$28907$1b62eedf@news.euronet.nl... > > $mailHeaders = "From: Wukong\r\n"; > $mailHeaders .= "MIME-Version: 1.0\r\n"; > $mailHeaders .= "Content-type: text/html; charset=big5"; > Forgot to mention that you also should use Content-Type (uppercase T) instead of Content-type with a lowercase t. JW | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: email, format, html |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Format HTML out-put | Lionel | PHP | 2 | 07-01-2007 5:08 PM |
| cvs: pearweb /include pear-format-html.php | Greg Beaver | Pear | 0 | 05-27-2007 7:46 PM |
| cvs: pearweb /include pear-format-html.php | Mark Wiesemann | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include pear-format-html.php | David Coallier | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include pear-format-html.php | David Coallier | Pear | 0 | 05-20-2007 7:42 PM |
| Featured Websites | ||||
|