Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Supression of spaces in html email

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Supression of spaces in html email
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: 7932
Location: Bellevue, IA

PostPosted: Thu Feb 17, 2011 9:16 pm    Post subject:
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    Post subject: Supression of spaces in html email
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: 1746
Location: Bloomington, IL

PostPosted: Thu Feb 17, 2011 9:46 pm    Post subject: Re: Supression of spaces in html email
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: 7932
Location: Bellevue, IA

PostPosted: Thu Feb 17, 2011 9:47 pm    Post subject:
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    Post subject:
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    Post subject: Re: Supression of spaces in html email
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts Removing Extra Spaces in a comma sepa... Puspojit DFSORT/ICETOOL 3 Tue Sep 13, 2016 7:46 am
No new posts How to send email with Rich Text usin... santhosh5983 JCL & VSAM 4 Fri Apr 08, 2016 2:30 am
No new posts Remove intermediate spaces Pallavi Vishwanath SYNCSORT 1 Fri Jan 15, 2016 2:45 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us