Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-23-2006, 01:06 PM Font
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Hai !

When i attempt to change the default font in the mail body
it prints everythig as it is ..

[phpcode]
$body=$body . "<font face=Tahoma size=14>Free softwares</font>\n";
[/phpcode]



But the output prints every thing as follows >
<font face=Tahoma size=14>wel come to my website</font>

So please correct the code..
afridy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-23-2006, 02:52 PM Re: Font
stOx's Avatar
Machine

Latest Blog Post:
Worlds Smallest Car - Peel P50
Posts: 2,111
Name: Matt. (>',')>
Location: London, England.
Trades: 0
Either somwhere along the line your html is being run through htmlentities() or you havn't included mime headers in the email so the software reading it knows its HTML and not plain text (i think).
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
stOx is offline
Reply With Quote
View Public Profile Visit stOx's homepage!
 
Old 06-23-2006, 04:05 PM Re: Font
Extreme Talker

Posts: 160
Trades: 0
Have you set the following headers when you created the email?

MIME-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
ElectricSheep is offline
Reply With Quote
View Public Profile
 
Old 06-24-2006, 05:01 AM Re: Font
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
hai stox and sheep

thank you for the post. after seeing your post i discoverd the problem may be in the headers. the header in my mail is as follows.

PHP Code:
$headers "MIME-Version: 1.0\n";
$headers $headers "Content-type: text/html";
$headers=  $headers "charset=iso-8859-1\n";
$headers=  $headers "Content-Transfer-Encoding: 7bit\n";
$headers $headers "X-Priority: 3\n";
$headers $headers "X-MSMail-Priority: Normal\n";
$headers $headers "X-Mailer: php\n";
$headers $headers "From: support@abcd.com\n";
$headers $headers "Return-Path: support@abcd.com\n"
If i place an "\n" at the end of 2nd line the font is really working as specified in <font> tag. but the mail body and header corrupts
out put in the mail is like >

charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: php From: support@abcd.com Return-Path: support@abcd.com Hello you@gmail.com this is an automated reply to your registration at ...................

Please examin the header and give me a solution
afridy is offline
Reply With Quote
View Public Profile
 
Old 06-24-2006, 05:28 AM Re: Font
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
you are missing a semi-colon after html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-24-2006, 05:38 AM Re: Font
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Quote:
Originally Posted by chrishirst
you are missing a semi-colon after html
Hai chris !

It seems there is a semi colon . could you pls post the line with correction ?
afridy is offline
Reply With Quote
View Public Profile
 
Old 06-24-2006, 05:52 AM Re: Font
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Not in the content-type string there isn't

Code:
$headers = $headers . "Content-type: text/html;";
$headers=  $headers . " charset=iso-8859-1\n";
and put a space before "charset"

your header code would be sent out to the server/client as
"Content-type: text/htmlcharset=iso-8859-1"

it should be "Content-type: text/html; charset=iso-8859-1"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-24-2006, 06:01 AM Re: Font
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Hai chris thank you.

do i need to insert an "\n" after that :

i.e. "Content-type: text/html; charset=iso-8859-1\n"
afridy is offline
Reply With Quote
View Public Profile
 
Old 06-24-2006, 06:12 AM Resolved > Re: Font
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Hi chris , stox , sheep.

my problem is solved with the help of your posts!!!

Let me rate the posts....
afridy is offline
Reply With Quote
View Public Profile
 
Old 06-24-2006, 06:13 AM Re: Font
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Yep.
Headers are terminated with a carriage return. RFC 822 if you want the technical details
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Font
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30073 seconds with 12 queries