View previous topic :: View next topic
|
Author |
Message |
vanakar
New User
Joined: 07 Mar 2009 Posts: 8 Location: mangalore
|
|
|
|
hi,
i am trying to send the content of a dataset in html format to mail recipients. But when i send the mail all the consecutive spaces between two columns are being suppressed and only 1 space is appearing in the email. How to fix this issue?. please help.. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Google is your friend. Googling html space returned 741,000,000 results and on the first page I found:
Quote: |
Browsers will always truncate spaces in HTML pages. If you write 10 spaces in your text, the browser will remove 9 of them, before displaying the page. To add spaces to your text, you can use the character entity. |
|
|
Back to top |
|
|
vanakar
New User
Joined: 07 Mar 2009 Posts: 8 Location: mangalore
|
|
|
|
i did see this character entity ( ). but if i want to put 500 spaces. then i have make the length of the file as 3000 bytes. i want to know is there any other method, instead of increasing the file length from 500 to 3000.
thanks for your help! |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
vanakar wrote: |
i did see this character entity ( ). but if i want to put 500 spaces. then i have make the length of the file as 3000 bytes. i want to know is there any other method, instead of increasing the file length from 500 to 3000. |
Yes; send your e-mail as plain text.
You must realize that with HTML (as with quite a few other things in the IT world), the appearance of the output is only tangentially related to the appearance of the input. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If you are using SMTP on the mainframe there is an absolute limit of 998 characters per line of email. This limit cannot be changed as it is part of the RFC standards (2821 and 2822) for SMTP. So the first comment is there is no way to have a 3000-byte line in SMTP, so what you want to do cannot be done.
Since the extra spaces are removed, and you cannot use as many times as you want, your only choice is to revise the requirements. |
|
Back to top |
|
|
mtaylor
Active User
Joined: 20 Feb 2009 Posts: 108 Location: Kansas City
|
|
|
|
Perhaps the original poster should learn a little more html? For example the table tag could be of help. |
|
Back to top |
|
|
fredrick andrews
New User
Joined: 10 Jun 2010 Posts: 52 Location: chennai
|
|
|
|
vanakar wrote: |
hi,
i am trying to send the content of a dataset in html format to mail recipients. But when i send the mail all the consecutive spaces between two columns are being suppressed and only 1 space is appearing in the email. How to fix this issue?. please help.. |
Hi,
You can use the HTML PRE tag to get this done.
This is probably the easiest method to get this done. |
|
Back to top |
|
|
|