PDA

View Full Version : htmlbody length



redmosquito9
06-23-2012, 08:47 AM
Is there a max length for the .htmlbody?

I have a function that has worked like a charm in many other applications that automatically sends an email to individuals in a recordset; however this time I get an error when I try to set the .htmlbody property.

The error is something about the outlook connection and that it needs to be restarted, but I when I replace the string with a simple "hello world" html it works. Also, I opened the large html string in a browser and it works.

The only thing I can think of is the length of it. It's currently 2500+ characters, and it works fine if I run it with left(htmlstring,1000) [obviously an issue though].

Any help would be apreciated.

redmosquito9
06-23-2012, 05:10 PM
so I just saw that many of my other databases are running it with strings 5000+. Could it not like something inside the string or is that not possible?

JP2112
07-03-2012, 05:32 AM
What is the error message? Can you post the string?