$bodyString = "$address\r\n\n\n$country\r\n\n\n$experience\r\n\n\n$message";
$mail->Subject = "$name : $email";
$mail->Body = $bodyString;
I m trying these \n to break the line but instead of getting line break I m getting spaces.
not working.
Given below is body I m getting in Mail
123 123 132 321
This way insert line breaks where newlines (\n) occur in the string:
<?php
$bodyString = nl2br("$address\n\n\n\n$country\n\n\n\n$experience\n\n\n\n$message");
?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With