nico_icecold Posted December 22, 2008 Share Posted December 22, 2008 Hi all, I have setup a simple email function for a form I have and just wondering if tehre is anyway to make the text that comes out to my email bold. See below: $form_information ="Hello, \n\n\r '<strong>'You have received the following parent nomination:'</strong>'\n\n\r Name: $fullname \n Nominees name: $name_of_nominee \n Age:$age \n Number of biological dependants: $bio_dependants \n Number of non-biological dependants: $nonbio_dependants\nAge of biological dependants: $bio_dep_age \n Age of non-biological dependants: $nonbio_dep_age \n Household income: $income \n Number of adults in house: $adults_living \n\n\r Reason for nomination: \n $reason_nomination \n\n\r Is the nominee in or looking to step back into the education system? $education \n\n\r Details of current or planning education: \n $education_details \n\n\r Is the nominee in or looking to step back into employment? $employment \n\n\r Employment details:\n $employment_details \n\n\r Contact details:\n\n Email address: $email_address \nContact telephone number: \n $telephone \n Nominee contact number: $telephone_nominee \n Nominee email: $email_nominee"; That sends my info to me and allows me have new lines etc but i cant seem to use strong or bold html tags in. Any ideas? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/138037-bold-text-in-php/ Share on other sites More sharing options...
premiso Posted December 22, 2008 Share Posted December 22, 2008 You have to send it as an HTML email. Read up on how to do that at mail() Example #4 They should have examples etc. Quote Link to comment https://forums.phpfreaks.com/topic/138037-bold-text-in-php/#findComment-721478 Share on other sites More sharing options...
nico_icecold Posted December 22, 2008 Author Share Posted December 22, 2008 Cheers! Will give it a try Quote Link to comment https://forums.phpfreaks.com/topic/138037-bold-text-in-php/#findComment-721487 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.