This content has been marked as final. Show 9 replies
try using a html break tag: <br>
or use <pre> tags to encompass your \r.
Pardon my ignorance kglad, but I am not very conversant in html yet.
how do you use a <pre> tag to encompass my \r?
I tried inserting the <br> but it either errored out or just added <br> to the string.
$message = "<pre>Name: " .$theName;
$message .= "\r\rEmail: ". $theEmail;
$message .= "\r\rPhone: ". $thePhone;
$message .= "\r\rMessage: " . $theMessage. "</pre>";
Sorry, but that did not work either kglad.
Just added a M<pre> to either end of the string. so...
<pre>Name: Forrest GumpsterEmail: email@example.comPhone: 555-5555Message: Testing Monday 1</pre>
I am posting the entire code, perhaps I am missing something critical...
start with godaddy sample code that shows how to send a multiline email message.
I assume that this code exists somewhere on goDaddy's website?
i would think so. use their support section to see what they say.
Found the answer from my genius Nephew in law. Writes entire websites in PHP he tells me.
Inserting, "PHP_EOL" for "\r" works for all formats it seems.
$message .= PHP_EOL . PHP_EOL ."Email: $theEmail";
$message .= PHP_EOL . PHP_EOL ."Phone: $thePhone";
$message .= PHP_EOL . PHP_EOL ."Message: $theMessage";
is the answer it seems.
that's a good thing to know.