473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

whitespace character added to html email

Hi,

I send an email from an asp.net application using the SmtpMail object.
I create and HTML string and send the email in HTML MailFormat.
I see the string in debug mode before the email is sent, and the
string is correct.
But when I receive the email and click on "view source" I see an extra
whitespace + linebreak characters that was added to the html, always
at position #990. In some cases it is added in a place where it
doesn't make a difference and the email looks fine, and in some cases
it 'ruins' the HTML and the email isn't correct. For example if the
whitespace is added into a tag, and "<td>" becomes "<t d>"...
I tried programatically adding whitespaces and linebreak characters to
the HTML string, not inside HTML tags, to try and prevent this, but
nothing helps..

Any suggestions would be greatly appreciated.
Jul 21 '05 #1
2 1995
Not sure if this is the solution but.

Some email servers break each line apart after 76 characters (mostly for
text based emails). I could be that your's does this. You may want to try
break apart you code with a bunch of vbcrlf's

"nadia" <na***@easy-forex.com> wrote in message
news:e4**************************@posting.google.c om...
Hi,

I send an email from an asp.net application using the SmtpMail object.
I create and HTML string and send the email in HTML MailFormat.
I see the string in debug mode before the email is sent, and the
string is correct.
But when I receive the email and click on "view source" I see an extra
whitespace + linebreak characters that was added to the html, always
at position #990. In some cases it is added in a place where it
doesn't make a difference and the email looks fine, and in some cases
it 'ruins' the HTML and the email isn't correct. For example if the
whitespace is added into a tag, and "<td>" becomes "<t d>"...
I tried programatically adding whitespaces and linebreak characters to
the HTML string, not inside HTML tags, to try and prevent this, but
nothing helps..

Any suggestions would be greatly appreciated.

Jul 21 '05 #2
Hi Rob,

Thanx for you reply. Unfortunately I don't think this is the case
since the email is HTML based and is broken apart only once after 990
characters. I tried to break the code apart and it didn't help.

"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message news:<#F**************@TK2MSFTNGP10.phx.gbl>...
Not sure if this is the solution but.

Some email servers break each line apart after 76 characters (mostly for
text based emails). I could be that your's does this. You may want to try
break apart you code with a bunch of vbcrlf's

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dwayne Epps | last post by:
I've created a function that checks form fields that only will have letters. This is the script: <script type="text/javascript" language="javascript"> function validateString(field, msg, min,...
11
by: Brian W | last post by:
Yet another editor problem To reproduce do the following 1) Open a Webform and switch to HTML edit mode 2) Enter the Following (include spaces) This is some text before <asp:hyperlink...
2
by: nadia | last post by:
Hi, I send an email from an asp.net application using the SmtpMail object. I create and HTML string and send the email in HTML MailFormat. I see the string in debug mode before the email is...
1
by: David | last post by:
I have rows of 8 numerical values in a text file that I have to parse. Each value must occupy 10 spaces and can be either a decimal or an integer. // these are valid - each fit in a 10 character...
4
by: blaq | last post by:
When one encounters mysterious gaps between elements, like: <div> <img src="one.gif"> <img src="two.gif"> </div> it's typically because the browser renders whitespace in the code as text....
25
by: Peter Michaux | last post by:
Hi, I'm thinking about code minimization. I can think of a few places where whitespace matters a + ++b a++ + b a - --b a-- -b when a line ends without a semi-colon in which case the new...
0
by: pedjacar | last post by:
Hello, I have the following problem - when whitespace character (e.g %20) is added to the URL of a .jsp page, the Apache web server does not recognize that it is a URL pattern that is mounted to...
1
by: ceestand | last post by:
I'm trying to remove all whitepace in an HTML-formatted string, except within the actual content. so I want to get: <p> <b>some text</b> </p> to look like <p><b>some text</b></p> I've been...
3
by: joelkeepup | last post by:
Hi, im trying to create a text email message using xslt template , the transforms work great, but the newlines and whitespace in the xslt doc are removed. Is there a setting somewhere I have...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.