Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

How can i make a part of the body bold or different font

the mail() function

Moderators: macek, egami, gesf

How can i make a part of the body bold or different font

Postby planketa » Mon Jul 04, 2005 6:05 pm

guys

here's my script in sending email

Code: Select all

$body = "Name: {$_POST['name']} \n\n ID NUMBER: {$_POST['idnum']}";
      
mail ("receiver", "Title",$body, "From: email ");



How can i make the text Name: and ID NUMBER: bold or have a different font? I tried using <b> but it doesnt work.

thanks.
User avatar
planketa
New php-forum User
New php-forum User
 
Posts: 152
Joined: Mon Mar 08, 2004 12:29 am
Location: Philippines

Postby gesf » Tue Jul 05, 2005 4:22 am

That just works with HTML emails.
You need to send the proper Content-type for this email type (Content-type: text/html).
User avatar
gesf
Moderator
Moderator
 
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby planketa » Tue Jul 05, 2005 7:21 pm

Thanks man. I'm sure there is another way to do it. I just cant figure it out
User avatar
planketa
New php-forum User
New php-forum User
 
Posts: 152
Joined: Mon Mar 08, 2004 12:29 am
Location: Philippines

Postby Alexej Kubarev » Wed Jul 06, 2005 12:40 am

Im sorry but there isn't.
You NEED to make it a HTML email to make something bold.
Otherwise it willbe plain text and you CANT do it..
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby ruturajv » Thu Jul 14, 2005 8:22 pm

thunderbird mail client renders *keyword* as *keyword*
and _underline_ as _underline_
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby Alexej Kubarev » Fri Jul 15, 2005 2:41 am

however its only Thunderbird :)
All other clients and webmails will require you using a html email
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.