473,749 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Truncated html email

I am creating both a text and html version of the same newsletter and
sending using CDOSYS.

Both of them incorporate a list of stories drawn from a database which are
assigned to a variable storyloop.

The text version works fine, but partway throught the html version when
viewed in Outlook 2000, it goes wrong. View source shows nothing obviously
wrong, except that partway through the storyloop, it just stops and then
goes onto the next section on the email.

Outputting storyloop to the browser gives perfect results, but if I remove
all parts of the html email and just assign storyloop to the .htmlbody, I
see that after exactly 1024 characters in the resulting email, I get ------
=_NextPart_000_ 0057_01C59E01.6 E3F5F50--

Does anyone know why this would happen, and more importantly, what I can do
to correct it?

TIA

Mike
Aug 10 '05 #1
5 2447
Mike wrote:
I am creating both a text and html version of the same newsletter and
sending using CDOSYS.

Both of them incorporate a list of stories drawn from a database which are
assigned to a variable storyloop.

The text version works fine, but partway throught the html version when
viewed in Outlook 2000, it goes wrong. View source shows nothing obviously
wrong, except that partway through the storyloop, it just stops and then
goes onto the next section on the email.

Outputting storyloop to the browser gives perfect results, but if I remove
all parts of the html email and just assign storyloop to the .htmlbody, I
see that after exactly 1024 characters in the resulting email, I get ------
=_NextPart_000_ 0057_01C59E01.6 E3F5F50--

Does anyone know why this would happen, and more importantly, what I can do
to correct it?

TIA

Mike


Shorter mails work fine though?
Have you tried to access it from another app then Outlook 2000? (XP,
2003, OE, etc?)

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Aug 11 '05 #2

Curt_C [MVP] wrote:
Mike wrote:
I am creating both a text and html version of the same newsletter and
sending using CDOSYS.

Both of them incorporate a list of stories drawn from a database which are
assigned to a variable storyloop.

The text version works fine, but partway throught the html version when
viewed in Outlook 2000, it goes wrong. View source shows nothing obviously
wrong, except that partway through the storyloop, it just stops and then
goes onto the next section on the email.

Outputting storyloop to the browser gives perfect results, but if I remove
all parts of the html email and just assign storyloop to the .htmlbody, I
see that after exactly 1024 characters in the resulting email, I get ------
=_NextPart_000_ 0057_01C59E01.6 E3F5F50--

Does anyone know why this would happen, and more importantly, what I can do
to correct it?

TIA

Mike


Shorter mails work fine though?
Have you tried to access it from another app then Outlook 2000? (XP,
2003, OE, etc?)

I've just tried it this morning using Outlook 2003, and it works fine.
However, the email was generated on a different machine (my one at
work), so now I'm narrowing it down to either the settings on my home
machine or the mail client. At least I know it's not the ASP (but then
I couldn't possibly see how it could be).

As to shorter emails working fine, I haven't tested that. I'll have to
do that this evening. I guess I will also have to spend some time
googling Mimetypes... and the MS KB. See if any light can be shed on
it all.

Mike

Aug 11 '05 #3
"Mike" <us**@domain.co m> wrote in message
news:Xn******** **************@ 195.188.240.200 ...
I am creating both a text and html version of the same newsletter and
sending using CDOSYS.

Both of them incorporate a list of stories drawn from a database which are
assigned to a variable storyloop.

The text version works fine, but partway throught the html version when
viewed in Outlook 2000, it goes wrong. View source shows nothing
obviously
wrong, except that partway through the storyloop, it just stops and then
goes onto the next section on the email.

Outputting storyloop to the browser gives perfect results, but if I remove
all parts of the html email and just assign storyloop to the .htmlbody, I
see that after exactly 1024 characters in the resulting email, I
get ------
=_NextPart_000_ 0057_01C59E01.6 E3F5F50--

Does anyone know why this would happen, and more importantly, what I can
do
to correct it?

TIA

Mike


I had something similar happen to me, when I setup an automated script to
send out scheduled reports. Try inserting some line breaks (vbCRLF) into the
generated html. For example, this:

<table>
<tr><td>Cell1.1 </td><td>Cell1.2</td><td>Cell1.3</td></tr>
<tr><td>Cell2.1 </td><td>Cell2.2</td><td>Cell2.3</td></tr>
<tr><td>Cell3.1 </td><td>Cell3.2</td><td>Cell3.3</td></tr>
<tr><td>Cell4.1 </td><td>Cell4.2</td><td>Cell4.3</td></tr>
</table>

Is better than this:

<table><tr><td> Cell1.1</td><td>Cell1.2</td><td>Cell1.3</td></tr><tr><td>Cell 2.1</td><td>Cell2.2</td><td>Cell2.3</td></tr><tr><td>Cell 3.1</td><td>Cell3.2</td><td>Cell3.3</td></tr>
<tr><td>Cell4.1 </td><td>Cell4.2</td><td>Cell4.3</td></tr></table>
I suspect this is a problem with the way Outlook parses long continuous
strings, but that's just conjecture on my part.
Aug 11 '05 #4
> I had something similar happen to me, when I setup an automated script to
send out scheduled reports. Try inserting some line breaks (vbCRLF) into
the generated html. For example, this:

<table>
<tr><td>Cell1.1 </td><td>Cell1.2</td><td>Cell1.3</td></tr>
<tr><td>Cell2.1 </td><td>Cell2.2</td><td>Cell2.3</td></tr>
<tr><td>Cell3.1 </td><td>Cell3.2</td><td>Cell3.3</td></tr>
<tr><td>Cell4.1 </td><td>Cell4.2</td><td>Cell4.3</td></tr>
</table>


And to help reduce length, you can leave out the optional closing tags on a
lot of elements.

<table>
<tr>
<td>Cell1.1
<td>Cell1.2
<td>Cell1.3
<tr>
<td>Cell2.1
<td>Cell2.2
<td>Cell2.3
<tr>
<td>Cell3.1
<td>Cell3.2
<td>Cell3.3
<tr>
<td>Cell4.1
<td>Cell4.2
<td>Cell4.3
</table>

Now, this might not be optimal in terms of validating against strict
doctypes or certain complex CSS attributes, but for generic HTML it should
be a substantial size saver.
Aug 11 '05 #5
"Chris Hohmann" <no****@thankyo u.com> wrote in
news:#T******** ******@TK2MSFTN GP15.phx.gbl:
"Mike" <us**@domain.co m> wrote in message
news:Xn******** **************@ 195.188.240.200 ...
I am creating both a text and html version of the same newsletter and
sending using CDOSYS.

Both of them incorporate a list of stories drawn from a database
which are assigned to a variable storyloop.

The text version works fine, but partway throught the html version
when viewed in Outlook 2000, it goes wrong. View source shows
nothing obviously
wrong, except that partway through the storyloop, it just stops and
then goes onto the next section on the email.

Outputting storyloop to the browser gives perfect results, but if I
remove all parts of the html email and just assign storyloop to the
.htmlbody, I see that after exactly 1024 characters in the resulting
email, I get ------
=_NextPart_000_ 0057_01C59E01.6 E3F5F50--

Does anyone know why this would happen, and more importantly, what I
can do
to correct it?

TIA

Mike
I had something similar happen to me, when I setup an automated script
to send out scheduled reports. Try inserting some line breaks (vbCRLF)
into the generated html. For example, this:

<table>
<tr><td>Cell1.1 </td><td>Cell1.2</td><td>Cell1.3</td></tr>
<tr><td>Cell2.1 </td><td>Cell2.2</td><td>Cell2.3</td></tr>
<tr><td>Cell3.1 </td><td>Cell3.2</td><td>Cell3.3</td></tr>
<tr><td>Cell4.1 </td><td>Cell4.2</td><td>Cell4.3</td></tr>
</table>

Is better than this:

<table><tr><td> Cell1.1</td><td>Cell1.2</td><td>Cell1.3</td></tr><tr>

<td
Cell2.1</td><td>Cell2.2</td><td>Cell2.3</td></tr><tr><td>Cell 3.1</td>

< td>Cell3.2</td><td>Cell3.3</td></tr>
<tr><td>Cell4.1 </td><td>Cell4.2</td><td>Cell4.3</td></tr></table>
I suspect this is a problem with the way Outlook parses long
continuous strings, but that's just conjecture on my part.


Here's the really weird thing - I sent it from my work server to 4
different email accounts, which I later accessed using Outlook 2000 at
home. It worked fine for 3 of the accounts, but broke on the one I was
originally testing with.

I have also tested it on the same 4 accounts using my testing server at
home - same result.

I have to assume that the problem is with the way that one of my email
service providers have configured their services, rather than anything
to do with the code, Outlook, or my IIS settings.

Mike
Aug 12 '05 #6

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

Similar topics

5
23108
by: Jay Chan | last post by:
The transaction log in a database in our SQLSERVER-2000 server has grown to 16GB. I cannot shrink the transaction log manually because it says that the entire 16GB log size is not free. This is strange because we backup the transaction log every hour, and that should have truncated the transaction log, and should have limited the size of the transaction log; somehow, the entire transaction log is still marked as being used. I was under...
8
5275
by: Dave Smithz | last post by:
Hi, Thanks to this group I discovered the excellent PHP Mailer (http://phpmailer.sourceforge.net/) which I use to send emails. Part of my application emails out hundreds of club members unique URL links which allow them to register for various things. Sometimes these URLS are long because they contain custom codes. Problem I am having is that some members are saying the links do not work
2
3732
by: | last post by:
Hi everyone, I'm using VS.NET, Framework 1.1, Windows 2000 Server, IIS 5, all the latest patches are installed. Im having this wierd random problem, that I cannot reproduce but it happens quite often: - my Request.Form collection is truncated in some posts (again I dont know why or how to reproduce it).
5
3168
by: z. f. | last post by:
hi, i have a vb.net web application and i make a request using internet explorer to an aspx page. the aspx page size if over 170KB, and the page in internet explorer looks truncated and in the view-source the text/html is truncated in the middle of a line. the last line looks like that: <td with and that's it. i checked the HTTP headers and saw that the aspx page have a Transfer-Encoding: chunked header, while asp page that have the...
8
2112
by: Derek | last post by:
Hi Hope that this is the correct newsgroup for this, sorry if it is not. I have the following code which is used to display the data brought back from a MySQL database in an input box so that a user cam make changes before resubmitting them. If I display $myrow all of the text is there, if I use the following code only the first word is show The same happens if I simply use $myrow and
1
3216
by: automation | last post by:
There is a truncation error of my Web Application using PHP 5.04, MySQL 5.022, and HTML(IE 6.0) whereby the MySQL Result Set is being truncated on the HTML page, even though the CSS Div Page Height is set to 'auto' which is supposed to grow the HTML page height to the size necessary to display the contents within the page. The query count is correct, but the MySQL Result Set is being truncated on the html page. This happens for MySQL Results on...
3
2311
by: Montana Gramps | last post by:
Hi, I work at a newspaper. I'm attempting to use the PHP mail function to send a computer generated message to an email list. The email message contains html, text and photos. Its the major headlines and pictures from the day's current news. The email message is getting truncated. The HTML displays fine in a browser. I've checked the HTML syntax. But I'm only sending half the message. No error messages are returned.
0
4222
by: RickVidallon | last post by:
Missing or Truncated Body Text in Email Application - 2 Strange Examples... There is no earthly reason why this is happening! EXAMPLES HERE: http://65.36.227.70/actmailer/ We have a scheduled task which runs every 5mins and sends pending email campaign. The script has been written in VB.NET and following is the code which
16
4696
by: Hans Fredrik Nordhaug | last post by:
I'm trying to write to a file in the current directory - no remote files. The subject says it all - I can add that both the directory and the file is wordwritable. This happens on a (quite good) free hoster in Norway which doesn't use safe mode, running PHP 5.1.6 as the PHP info below shows ... Test it at: http://home.no.net/moldevbk/fopen-test/?mode=w (write - fails) http://home.no.net/moldevbk/fopen-test/?mode=a (append - ok)...
0
8996
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9566
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8256
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.