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

the mail() function

Moderators: egami, macek, gesf

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

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.
PHP Rules

User avatar
gesf
Moderator
Moderator
Posts: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

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).
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

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

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
PHP Rules

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

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..
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Thu Jul 14, 2005 8:22 pm

thunderbird mail client renders *keyword* as *keyword*
and _underline_ as _underline_

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Fri Jul 15, 2005 2:41 am

however its only Thunderbird :)
All other clients and webmails will require you using a html email
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest