PHP - how to bold text in php mail

Asked By Olusegun A.
24-Aug-10 06:44 AM

Hello friends

Am having problem bolding my text or applying other styles to my mail content. eg

<?php

$message= "Name: <b>$name</b>";

?>

the message always appear in the receivers box as

Name: <b>James</b> instead of

Name: James


What do i do?

  Web Star replied to Olusegun A.
24-Aug-10 07:05 AM
you need to use custome font in php as in this article
http://iluvjohn.com/welcome-to-iluvjohn/custom-fonts-on-a-website-with-php-704/
  Super Man replied to Olusegun A.
24-Aug-10 08:24 AM

<?php

// multiple recipients

$to  = 'aidan@example.com' . ', '; // note the comma

$to .= 'wez@example.com';

 

// subject

$subject = 'Birthday Reminders for August';

 

// message

$message = '<b> Happy birthday </b>';

 

// To send HTML mail, the Content-type header must be set

$headers  = 'MIME-Version: 1.0' . "\r\n";

$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

 

// Additional headers

$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";

$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";

$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";

$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";

 

// Mail it

mail($to, $subject, $message, $headers);

?>

  DlennartD DlennartD replied to Super Man
15-Oct-10 08:30 AM
TGHDF
  DlennartD DlennartD replied to Super Man
15-Oct-10 08:33 AM
This isn't working if you want to combine bold text with a variable like this:

Name: <b>$name</b>

Any idea how to solve this?
Create New Account
help
different profession; I regularly use four or five different languages (C++, Java, AWK, Unix shell. . .). - - James Kanze (GABI Software) email:james.kanze@gmail.com Conseils en informatique orient = E9e objet / Beratung in objektorientierter Datenverarbeitung 9 place big company with years work contact developing companies directly. At http: / / www.GetClub.com / Experts.php you can tell your expertise and get work from home work. You only get small is really not as important in chosing a course as any number of other things). - - James Kanze (GABI Software) email:james.kanze@gmail.com Conseils en informatique orient = E9e objet / Beratung in objektorientierter Datenverarbeitung 9 place central piece of the IT infrastructure; something goes wrong with them, and nothing else works.) - - James Kanze (GABI Software) email:james.kanze@gmail.com Conseils en informatique orient = E9e objet / Beratung in objektorientierter Datenverarbeitung 9 place their native language will find it equally difficult to do so in C++ or Java. - - James Kanze (GABI Software) email:james.kanze@gmail.com Conseils en informatique orient = E9e objet / Beratung
details of it. . . rundll32.exe (not a virus) *affected byjdpxgo.dll <- - starts up (VIRUS) startup name * Name: BMe30d5070 Path: Rundll32.exe "C: \ WINDOWS \ system32 \ byjdpxgo.dll", s Location: HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Run Once deleted it re names its self Name: e03e63ec Path: rundll32.exe "C: \ WINDOWS \ system32 \ lrlrvovu.dll", b Location: HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows how to get rid of it? - - qlrlove - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - qlrlove's Profile: http: / / forums.techarena.in / member.php?userid = 51722 View this thread: http: / / forums.techarena.in / showthread.php?t = 978173 http: / / forums.techarena.in Check Google. http: / / www.google.com / search?hl = en than "I have a new virus", they will need a lot more info to help. - - James Wolf [MS-MVP] Orlando, FL keywords: New, Virus, affecting, rundll32.exe description: I discovered a
Changing Computer Name using WMI in ASP Backcode (C#) end of post Here's the full info to "Sets the NetBIOS and the Computer Name (the first label of the full DNS name) [MSDN]" within a C# program: / / P / Invoke signature [DllImport( "Kernel32.dll", SetLastError = true, CharSet = CharSet string NewHostname = "my machine"; returnFlag = SetComputerNameEx(COMPUTER_NAME_FORMAT.ComputerNam ePhysicalDnsHostname, NewHostname); You can change your computer name as shown in the following: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e EventArgs) Handles Button1.Click Try Dim classInstance As New ManagementObject( _ "root \ CIMV2", _ "Win32_ComputerSystem.Name = 'SERVER'", _ Nothing ) Dim inParams As ManagementBaseObject = _ classInstance.GetMethodParameters("Rename") inParams("Name") = "server2" 'rename to inParams("Password") = "admin" inParams("UserName") = "administrator" Dim outParams As ManagementBaseObject = _ classInstance through the authentication and authorization (username and password) of security, along with the new computer name. We can get the result after executing the WMI method “Rename” into “outParams”. You can VBScript code: strComputer = "." Set objWMIService = GetObject("winmgmts: \ " & strComputer & " \ root \ CIMV2") Set objShare = objWMIService.Get("Win32_ComputerSystem.Name = 'SERVER'") Set objInParam = objShare.Methods_("Rename").inParameters.SpawnInstance_() objInParam.Properties_.Item("Name") = "server2" objInParam.Properties_
XP (1) LoungeAN (1) Database (1) VPN (1) Because most companies will use thier company name as their domain name and also their company website uses companyname.com. So if were working at ABC our website most likely will be called www.abc.com thus creating a problem if I name my domain abc. Also .com, .net, etc. . . . are mostly used for websites and not domain. Thus the default choice when installing SBS is .local. See "The Domain Name System name recommendations for Small Business Server 2000 and Windows Small Business Server 2003" http: / / support.microsoft default.aspx?scid = kb%3ben-us%3b296250 turn the question on it is head, why would you name your AD to be in public namespace? The question has very little to do with not see an issue with naming your domain AD the same as a public domain name that you own. If your public domain was ABC.COM and you wanted your Active A side note on this: I use in.whatever.com as my own AD domain name, but I've noticed a problem when using RWW to connect to a Vista client