Does anyone know what is the best way to format an email body before using mail()?
For example:
$email_body = "Heading 1\t\t";
$email_body .= "Heading 2\t\t";
$email_body .= "Heading 3\n\n";
$email_body .= "Content 1\t\t";
$email_body .= "Content 2\t\t";
$email_body .= "Content 3\n\n";
mail($recipients, $subject, $email_body, $email_headers);
Using tab is not working if the length of the content is different. Anyone has any suggestions on how to line these columns up nicely or is there a way to put it into a table before mailing it out?