I've got the PHP mail(): function working for a form I'm using on my site. I am now trying to format the $body attribute to look nicer and more organized when I receive the subsequent e-mail.
I've tried
and I've tried
and both give me
Here's the snippet of the code that I'm working with (I think it's just a matter of syntax that I'm doing wrong):
if(!empty($brandname) && !empty($firstname) && !empty($lastname) && !empty($email) && !empty($goals) && !empty($bio)){
$to = 'test@test.com';
$subject = 'Submission Form';
$body = 'Brand Name: '.$brandname.'<br />Name: '.$firstname.' '.$lastname.'<br />Email: '.$email.'<br />About the Company:'.$bio;
$headers = 'From: '.$email;
It's just displayed the <br />
as text in the e-mail I receive. It was the same when I used
(which I'm assuming is actually the right way to do it). What am I doing wrong? Thanks.