Linefeed in normal text
-
Hi there, I have text coming from a database table field which I want to use for the body of my email massage. But the email must be in plain text format, and not HTML format. How do I get the text to display like as if it is like HTML format. What I means, the following text: Mr Brendan Vogt wrote:Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon.Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. ...should look like: Mr Brendan Vogt wrote: Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon. Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. I hope you understand?? Any help or advice will be greatly appreciated! Cheers. Brendan
-
Hi there, I have text coming from a database table field which I want to use for the body of my email massage. But the email must be in plain text format, and not HTML format. How do I get the text to display like as if it is like HTML format. What I means, the following text: Mr Brendan Vogt wrote:Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon.Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. ...should look like: Mr Brendan Vogt wrote: Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon. Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. I hope you understand?? Any help or advice will be greatly appreciated! Cheers. Brendan
I assume there is a LF or CR/LF after say Vogt wrote: why not simply change them to <BR> when you display in your HTML page?
"An education isn't how much you have committed to memory, or even how much you know. It's being able to differentiate between what you do know and what you don't." - Anatole France
-
Hi there, I have text coming from a database table field which I want to use for the body of my email massage. But the email must be in plain text format, and not HTML format. How do I get the text to display like as if it is like HTML format. What I means, the following text: Mr Brendan Vogt wrote:Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon.Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. ...should look like: Mr Brendan Vogt wrote: Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon. Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. I hope you understand?? Any help or advice will be greatly appreciated! Cheers. Brendan
-
Hi there, I have text coming from a database table field which I want to use for the body of my email massage. But the email must be in plain text format, and not HTML format. How do I get the text to display like as if it is like HTML format. What I means, the following text: Mr Brendan Vogt wrote:Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon.Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. ...should look like: Mr Brendan Vogt wrote: Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon. Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. I hope you understand?? Any help or advice will be greatly appreciated! Cheers. Brendan
I may be completely wrong, but from your message and the one you posted later, I assume that: 1. you are working in classic asp. 2. you are receiving some data from the database. 3. you are creating an e-mail message from the above data. 4. the requirement is that the above e-mail is in plain-text. If all of the above are correct, use character 10 and 13 to add line field/carriage return. (or vbCrLf). If not, I am sorry! As a side note, if you are creating e-mail messages to be processed by SMTP server, make sure that mime type is set to text. Good Luck!:)
-
I may be completely wrong, but from your message and the one you posted later, I assume that: 1. you are working in classic asp. 2. you are receiving some data from the database. 3. you are creating an e-mail message from the above data. 4. the requirement is that the above e-mail is in plain-text. If all of the above are correct, use character 10 and 13 to add line field/carriage return. (or vbCrLf). If not, I am sorry! As a side note, if you are creating e-mail messages to be processed by SMTP server, make sure that mime type is set to text. Good Luck!:)
Hi, You are 99% correct! It's no data from the database. It's a string that I have hard coded myself. This is mainly for the people that can view emails only as text. The email component gives me an option of either having the body as HTML, or as plain text. I have chosen plain text, but I am not sure if the
tags will work in plain text, don't think so. And I have tried the character 10 and 13, not working either. I will try again the weekend. Thanks for coming back!! -
Hi, You are 99% correct! It's no data from the database. It's a string that I have hard coded myself. This is mainly for the people that can view emails only as text. The email component gives me an option of either having the body as HTML, or as plain text. I have chosen plain text, but I am not sure if the
tags will work in plain text, don't think so. And I have tried the character 10 and 13, not working either. I will try again the weekend. Thanks for coming back!!Try this: strBody = "Mr Brendan Vogt wrote:" & vbCrLf & "Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon." & vbCrLf & vbCrLf & "Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series."
-
Hi there, I have text coming from a database table field which I want to use for the body of my email massage. But the email must be in plain text format, and not HTML format. How do I get the text to display like as if it is like HTML format. What I means, the following text: Mr Brendan Vogt wrote:Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon.Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. ...should look like: Mr Brendan Vogt wrote: Australian Chris du Toit, is one of the most affable athletes in the sport of triathlon. Chris took the World No. 1 position and destroyed arguably the greatest field ever assembled in triathlon, to win both the 1997 Triathlon World Championships and the 1997 ITU World Cup Series. I hope you understand?? Any help or advice will be greatly appreciated! Cheers. Brendan