Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8201
Location: East Dubuque, Illinois, USA

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: 1783
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: 8201
Location: East Dubuque, Illinois, USA

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 Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 3 Thu Dec 14, 2017 3:52 pm
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts EMAIL using IEBGENER - SMTP parasmalik20 JCL & VSAM 4 Tue May 23, 2017 12:19 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us