I am triggering an email to be sent with data from a filled out form once a submit button has been clicked. The email successfully sends with the correct data, however, I am wanting to be able to apply some basic styling to the email such as some <h3> or <strong> tags. Am I able to do this within my php $message variable, and if so, what would that look like?
<?php
$to = "[email protected]"; // this is your Email address
$from = "[email protected]"; // this is the sender's Email address
$company_name = $_POST['company_name'];
$rep_name = $_POST['rep_name'];
$prod_type = $_POST['prod_type'];
$address = $_POST['address'];
$city = $_POST['city'];
$state = $_POST['state'];
$zip = $_POST['zip'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$subject = "New Form Submission";
$message = "New Form Submission" . "\n" . "\n" .
"Company Name: " . $company_name . "\n" .
"Representative Name: " . $rep_name . "\n" .
"Product Type: " . $prod_type . "\n" .
"Address: " . $address . "\n" .
"City: " . $city . "\n" .
"State: " . $state . "\n" .
"Zip: " . $zip . "\n" .
"Phone: " . $phone . "\n" .
"Email: " . $email . "\n";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
?>
Edit: I have tried using ob_start() and ob_get_clean() that I found at this link Defining html code inside PHP variables but had no success

\nin HTML would not render a new line.