Im having hard time formatting the message of the body for the external API to create ticket and Im using laravel. Im not sure if doing it correctly.
Appreciate for any help. Thank you.
code in controller:
$htmlBody = '<html>';
$htmlBody .= '<body>';
$htmlBody .= '<p>Division Name: ' . $inqdata->office_name. '</p>';
$htmlBody .= '<p>Requester Name: ' . $inqdata->requester_name . '</p>';
// Include other relevant information from the response
$htmlBody .= '</body>';
$htmlBody .= '</html>';
output:
<title>Support Request</title>
<h1>Support Request</h1>
<p>Division Name: Manile</p>
<p>Requester Name: Chloe Jane</p>