|
Posted by Nick DeNardis on 12/16/98 11:58
It looks like you are not sending the email in "text/plain" instead of
"text/html". If you send it in "text/html" you will get your desired
results, if you want to send it in "text/plain" you will have to
replace your "<br />"'s with "\n\r" to signal a carriage return.
Advo wrote:
> Hi there.
>
> Basically, I need to send some details but be able to use new lines.
> Before we were using asp, which used VbCrLf but now that im writing
> the pages in PHP we need another way.
>
> a code sample is:
>
> $details =
> "------------------------------------------------------------------------------"
> . '<br />' .
> "WEBSITE RESPONSE - PACK REQUEST" . '<br>' .
> "------------------------------------------------------------------------------"
> . '<br>' .'<br>' .
>
> which should then look similar to:
>
> ------------------------------------------------------------------------------
> WEBSITE RESPONSE - PACK REQUEST
> ------------------------------------------------------------------------------
>
> when the email gets sent to the address, but at the moment, its being
> sent through as:
>
> ------------------------------------------------------------------------------<br>WEBSITE
> RESPONSE - SAMPLE PACK
> REQUEST<br>------------------------------------------------------------------------------<br><br><strong>NEW
>
>
>
>
> Now is this just because the email client (im testing with yahoo)
> doesnt support html? or another reason.
>
> Any ideas how i can fix this issue please.
>
> Regards and thanks for the help
Navigation:
[Reply to this message]
|