473,322 Members | 1,781 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,322 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.
Nov 18 '05 #1
2 1174
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.

Nov 18 '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

Nov 18 '05 #3

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

Similar topics

2
by: Andy Fish | last post by:
Hi, I was wondering if there is any way to control the whitespace (specifically line breaks) that are generated using Xalan XSLT processor with output method=html. I find it sometimes...
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,...
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...
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...
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.