IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Supression of spaces in html email


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vanakar

New User


Joined: 07 Mar 2009
Posts: 8
Location: mangalore

PostPosted: Thu Feb 17, 2011 8:50 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Feb 17, 2011 9:16 pm
Reply with quote

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
View user's profile Send private message
vanakar

New User


Joined: 07 Mar 2009
Posts: 8
Location: mangalore

PostPosted: Thu Feb 17, 2011 9:34 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Feb 17, 2011 9:46 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Feb 17, 2011 9:47 pm
Reply with quote

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
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Fri Feb 18, 2011 5:35 am
Reply with quote

Perhaps the original poster should learn a little more html? For example the table tag could be of help.
Back to top
View user's profile Send private message
fredrick andrews

New User


Joined: 10 Jun 2010
Posts: 52
Location: chennai

PostPosted: Sun Mar 06, 2011 11:42 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts Cobol program with sequence number ra... COBOL Programming 5
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts To Remove spaces (which is in hex for... JCL & VSAM 10
Search our Forums:

Back to Top