The source of the Mail Body is sometimes the text content in TextBox. However, if the text content is not processed, the text will not have any format, and will be displayed row by row. What we are talking about now is how to make text content line break without being crowded together.
During single-step debugging, we will find that in the obtained text content, the line feed in the text is replaced with "rn", because it has never been found, leading to a large circle. After finding this cause, you can replace this string with the HTML <br/>.
Ex: string strBody = Body. Replace ("rn", "<br/> ");
Although it was easy, it was really a headache when I didn't know it at the time. I hope it will be useful to you too.
Instance
<Form id = "form1" name = "form1" method = "post" action = "">
<Label>
<Textarea name = "t" id = "t" cols = "45" rows = "5"> </textarea>
</Label>
<Label>
<Input type = "submit" name = "button" id = "button" value = "submit"/>
</Label>
</Form>
<? Php Tutorial
If ($ _ POST ){
Echo str_replace (chr (13), '<br>', $ _ POST ['t']);
}
?>
For more details, see: http://www.111cn.net/phper/29/ff8b04e8f5b663b8b86d960321efcc83.htm